Does the Physics2D.GetRayIntersection method take the ordering layer into account?
It seems like it does not.
I have a bunch of sprites on top of each other all with different ordering layer value so they appear above each other.
What I can do is select a sprite and give it a highest ordering layer so it then moves onto the top.
The problem I have is that when I click on a sprite (that’s on the top) it quite often will select another sprite that is under it (has a lower ordering layer value)
Why is this?
It would be pretty disappointing if the Physics2D.GetRayIntersection wouldn’t take the ordering layer into account, then you would have to change the Z depth of the sprites slightly to make a workaround.
Please explain.
Br,
Peter