Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: dean_winston on March 02, 2015, 04:48:06 AM

Title: A problem about Depth
Post by: dean_winston 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?
Title: Re: A problem about Depth
Post by: ArenMook on March 03, 2015, 05:27:26 PM
Have a look at NGUITools.AdjustDepth, NGUITools.BringForward, NGUITools.PushBack functions.