Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Tatanan on February 17, 2015, 05:56:51 AM
-
Hello.
Which depth is more important: Panel depth, widget depth or camera depth?
Example: 2 sprites. Sprite 1 with panel depth 0 and widget depth 10 and sprite 2 with panel depth 1 and widget depth 0. Which one is shown if both are on the same position?
Thank you.
-
Camera Depth (layer) > Panel Depth > Widget Depth
Sprite 2 would be on top.
-
And the layer?
Is it taken into account when sorting depth?
I mean, there's a value called Layer (Water, UI...) that you can change.
Is it relevant to the depth things are shown?
-
No, it's not relevant.