Author Topic: A problem about Depth  (Read 3685 times)

dean_winston

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
A problem about Depth
« on: March 02, 2015, 04:48:06 AM »
Hi,
   In my game,it always dynamically load a prefab which is a UIPanel and reset panel's depth to suitable value by click event.In some panels contain another UIPanel as child and the child UIPanel must reset depth too, if not the level relationship will be in disorder(the child UIPanel has lower depth than parent's).
Is that any better method to do this?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: A problem about Depth
« Reply #1 on: March 03, 2015, 05:27:26 PM »
Have a look at NGUITools.AdjustDepth, NGUITools.BringForward, NGUITools.PushBack functions.