I’m trying to detect and handle click event (OnMouseDown) in a box collider 2D but i can’t.
I created first an empty gameobject with a component 2D box collider. I have a script attached to this object and inside i tried :
void OnMouseDown(){
//Print
}
But there is no effect… How can i do that ?