Unity Click on object
This will show you how to know if the player click on an object with the mouse by raycasting from the screen mouse position.
This can be used for:
- Knowing when a player clicks on an object with the mouse.
For advanced and dynamic raycasting check this out.