Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Seith on March 27, 2013, 12:40:32 PM

Title: [Solved] UIPopup menu not working?
Post by: Seith on March 27, 2013, 12:40:32 PM
Well I feel very silly for asking, since I've spent the last hour trying to make this work, but: are the UIPopupList working in the latest version?

I mean I followed step by step the video tutorial here: http://www.youtube.com/watch?feature=player_detailpage&v=rI1vjXgKVTU#t=460s but the popup menu does not react at all to being clicked. There's no hover color-change, nothing. It's like the control's dead. I don't understand since I've got sliders, buttons, etc... working pretty well now.

Can anyone confirm if that's a known bug? Or more likely a newbie mistake? Thanks...


Update: I checked the example scene for Popup menu and it works. Which is all the more puzzling. So I went ahead and did screenshots of all three elements and their hierarchy and reproduced them to the letter in my scene. Including changing the default Sprite that comes when you create the UIPopup menu control and replacing it with a Sliced Sprite (like in the example scene). But no dice. It still doesn't work.

I'm completely lost...  :(
Title: Re: UIPopup menu not working?
Post by: broknecho on March 27, 2013, 02:42:17 PM
Is your UI Root on a layer?  If not, try adding a new layer called like 2D UI if that is what you're making.

Also make sure you are using the Widget Tool to create the Popup List as it handles a lot of the setup in the object hierarchy.
Title: Re: UIPopup menu not working?
Post by: Seith on March 28, 2013, 03:41:51 AM
That was it! By default when a UIPopup menu is created it does not automatically get assigned the same UI layer as its parent panel (as a suggestion, maybe it should). I hadn't noticed that.

Anyway, thanks a lot Broknecho, you're a life-saver! :)