Posted for others who have this problem but can’t resolve it.
Operating in URP on 2019.4.3f1 with a mix of the old and new Input systems. Some combination of actions and edits led to OnMouseOver, OnMouseExit, etc. not working. Perhaps it was never working as I was only just learning how to use it.
Tried all the suggested tips, nothing worked.
Finally, after a day of hair pulling, this worked.
ensure that Player Settings → Input System are set to ‘both’
Assets → Reimport All
Maybe ‘Reimport All’ is a catchall fix for new players
No it’s fine. I just wanted to highlight that it wasn’t related to physics.
Whilst OnMouse etc might use physics colliders, the mouse/callbacks are a UI thing and are not implemented, supported or related to physics; it’s just another user of physics colliders in the same way that the particle system hitting colliders isn’t implemented by physics. Totally understand that you wouldn’t know that of course.
Just for your info, these are the UI and Input forums.