Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: lishuen on July 15, 2014, 09:53:29 PM

Title: UIPanel or other? How can I make a 2D UI?
Post 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?
Title: Re: UIPanel or other? How can I make a 2D UI?
Post by: ArenMook on July 16, 2014, 12:00:13 AM
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.
Title: Re: UIPanel or other? How can I make a 2D UI?
Post by: Nicki on July 16, 2014, 10:30:33 AM
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.
Title: Re: UIPanel or other? How can I make a 2D UI?
Post by: lishuen on July 17, 2014, 09:43:28 PM
many THS to your both~!Now I make my test to figure it what exactly the Depth between UIpanel and UIsprite.