Author Topic: Depth not working as expected  (Read 11074 times)

yahodahan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
Depth not working as expected
« on: June 22, 2012, 02:30:28 PM »
I'm having trouble with Depth in NGUI.

For the most part, it works fine. But occasionally text will refuse to "obey" the depth number, and render on top of/underneath things it shouldn't. I have found that moving the z position back and forth always works to force a depth, however this seems the wrong way to go about it, when you have such a nice depth system built in.

The other problem with moving on the z is, if I move a text item on the z, ALL text items in my scene move forward/back in visual depth. However, the z position shown for the selected transform, is not reflected in the other text items- they just mimic it's visual depth.

I haven't been able to find a similar problem+solution, am I just doing something wrong? Are there some typical user-errors I should check?

Thanks for the help!

ryan

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 90
    • View Profile

yahodahan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: Depth not working as expected
« Reply #2 on: June 22, 2012, 06:41:03 PM »
Ah, thanks ryan. Seems I missed that- does Google search hit these forums? Next time I search locally too :)