Author Topic: [Solved] UIPopup menu not working?  (Read 2234 times)

Seith

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
    • View Profile
    • SeithCG
[Solved] UIPopup menu not working?
« 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...  :(
« Last Edit: March 28, 2013, 03:42:20 AM by Seith »
SeithCG.com

broknecho

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 33
    • View Profile
Re: UIPopup menu not working?
« Reply #1 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.

Seith

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 37
    • View Profile
    • SeithCG
Re: UIPopup menu not working?
« Reply #2 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! :)
SeithCG.com