I couldn’t get the mouse to click on the collider.
After some trial and error I fixed it, here’s what I checked for:
-
Core Game Area must be between the camera (Z) position and you background position. In my case, my Core Game Area was set to the same ZPosition as my camera, so I guess that wasn’t helping to being recognized.
-
Core Game Area must be closer to the camera (on Z, again), than any of the other GameObjects (i.e. attackers, defenders). If not, it would click on them instead of my Core area collider.
So, in short: make sure you Z position of all elements in your game make sense.
Hope it helps and saves you some time.