How can you tell what gameobject the player's mouse is pointing at?
asked Oct 28 '10 at 10:04 PM
If you want to use a raycast (or only check on a particular frame, rather than needing to attach that script to every object), you can use this simple script (reposting from another answer):
answered Oct 29 '10 at 01:16 AM
You should be able to use the OnMouseOver event.
From the documentation:
Have this function present in a script that is attached to every gameobject that you want to know if it is pointing at.
answered Oct 28 '10 at 11:20 PM