I think the title speaks for itself. I'm using 2D Colliders, and they're on the same Z position. OnMouseDown() doesn't get triggered if you're clicking another object's collider as well. This is pretty annoying. Thoughts?
At least for me it gets triggered always on one of the objects, but I cannot choose which one.
As a workaround you can add a child gameObject with 3D collider (for example Box Collider
). The child is needed because both 2D and 3D colliders cannot be attached to same gameObject. Make the 3D collider expand towards camera a little bit. In that case the child gameObjects OnMouseDown() is always called.