Hi ,
EDIT: It was an issue regarding layermasks.
I am using Physics2D.OverlapPoint with Layermask to detect whether the touch position on the screen has a collider at that point.
BUT, lets say i have more than 1 collider2D in the same place, then what will Physics2D.OverlapPoint return?
Since we cannot give z depth for 2D colliders, how to sort the collider2D’s so that i will know which collider2D is returned and it will not be ambiguous.
The main problem is, Im not getting the collider2d which i expect to get since the object’s Z is lowest and yet the collider2D i get is of the one which Z position is more than that object! That is Weird.