The only way for this to work, apart from making sure there is `Collider` component, is to make sure the `Z` index of the object is on top, even if you are making 2D games. The sorting layer is ignored and Z index take precedence instead.
So this means you may not be able to attach your sprite under another game object. I tried parenting my sprite under another game object and my mouse click is no longer detected.
Trending Articles
More Pages to Explore .....