Author Topic: Query on UIPopUp  (Read 3396 times)

pad406

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 62
    • View Profile
Query on UIPopUp
« on: February 03, 2014, 07:15:00 AM »
Hi all, I'm new to NGUI so apologies if these seems really simple. I have created a sprite and attached UIPopUp to it. Everything works fine when I click on it, ie the Menu pops up and disappears, I can scroll through it, etc. But, no matter what I do It's showing behind other sprites, controls, etc. The only depth setting that I have is on the sprite itself which is set ok. Any ideas on what I'm missing

thanks
Paul

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Query on UIPopUp
« Reply #1 on: February 04, 2014, 02:16:13 AM »
Do you use different panels? Each panel results in a new set of draw calls, and panel depth supersedes widget depth.

pad406

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 62
    • View Profile
Re: Query on UIPopUp
« Reply #2 on: February 04, 2014, 06:50:23 AM »
Aren, yes I do have a panel, so that's most likely the issue. I have since changed the scene so that the panel is de-activated when the pop-up is clicked, which I prefer anyway. I will bear the panels in mind the next time

thanks