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.