Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: lishuen on July 15, 2014, 09:53:29 PM
-
Is it only the UIPanel can deal with children's depth? How to make chirldren clearly for mutilple depth 2D UI?
-
I don't understand your question. Panels have depth, so do widgets, and so do cameras. Camera depth is always first, then panel depth, then widget depth.
-
Some of these things are easier for you to just test out rather than ask. Make a two panels with some sprites in, just use the assets from the example folder. Then try to switch the depths around and see what happens.
Camera Depth is a little special, as it overrides everything else (if the camera is assigned its own layer and the UI elements are in the same layer), but the other two are such that panel depth counts first, then widget depth.
-
many THS to your both~!Now I make my test to figure it what exactly the Depth between UIpanel and UIsprite.