Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Tatanan on February 17, 2015, 05:56:51 AM

Title: Panel depth vs widget depth vs camera depth
Post 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.
Title: Re: Panel depth vs widget depth vs camera depth
Post by: Nicki on February 17, 2015, 07:05:03 PM
Camera Depth (layer) > Panel Depth > Widget Depth

Sprite 2 would be on top.
Title: Re: Panel depth vs widget depth vs camera depth
Post by: Tatanan on August 31, 2015, 03:40:28 AM
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?
Title: Re: Panel depth vs widget depth vs camera depth
Post by: ArenMook on September 06, 2015, 04:52:52 PM
No, it's not relevant.