How to check if exactly sprite (not gameobject) was clicked? I tried a lots of methods, and nothing is working.
What did you try? The recommended way is to attach a collision object and ray cast.
I understood what my problem was, sorry. The problem was with the mouse position, because the mouse position is specified in pixels, but the sprite uses the world position.
2 Likes