Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: Tatanan on June 25, 2015, 10:38:58 AM
-
I have 2 UI Roots, with 2 panels and 2 cameras.
Each "team" has different layer, the panels has different depth and the culling masks are assign to the corresponding layers.
It was supposed that a panel with bigger depth will be catch the raycasts (click events) first, wasn't it?
Instead the sprites on the layer with smaller depth and on the panel with smaller depth receive the click before the elements in the bigger depth.
I mean, the sprite which I see above on the Game is not the one which receive the click, even if this game has the collider and so on.
What am I doing wrong? The visual depth and collider depth is not the same?
Thank you.
-
It goes by camera depth first, then by panel depth, then by widget depth.
-
It's not working exacly this way to me. I'll analyze deeper what's going on and tell you if I can't fix it.
Thank you