IPointerClickHandler and OnMouseDown Not Responding

Hello everyone!

Has anyone else run into an issue where they can’t get the IPointerClickHandler OR OnMouseDown to work properly? I’ve gotten the following setup in a blank project:

  • I have an EventSystem in the heirarchy
  • The object has a Box3d Collider, not set to trigger
  • I’m implementing the IPointerClickHandler interface
  • The camera has a Physics Raycaster set to Event Mask - Everything
  • Input system is set to use Input Manager (Old)

Using an otherwise empty scene, I can’t see a reason why neither of these methods would fail to Debug.Log()

Am I missing anything obvious/stupid that I should know about?

7113982--848986--Screen Shot 2021-05-06 at 10.08.48 AM.png



If I had to guess, the fact you wrote “Box3D Collider” seems suspicious, as such a thing doesn’t exist. Perhaps you were just trying to be explicit that it was a BoxCollider vs a Box2DCollider. :slight_smile:

You need to know if you’re in 2D or 3D physics, as each one requires a different Physics Raycaster, as those two systems don’t share anything except the word “physics.”

I just tested this myself, as I’d not used this interface in a while, and I did it all in 3D as I assume you’re trying to do based on your snippets, and it all works precisely as advertised. See enclosed package.

7114375–849070–ClicketyClanketyClunk.unitypackage (42.3 KB)