I have a simple game object (3d object) and I want to detect and run some code when gets clicked/tapped.
I tried OnPointerDown/Up/Click
but seems to not be working for 3D Objects. With 2d objects (images with raycast targets) it works fine.
How can I do it with a 3d objects in a simple way? Thanks!