I'm trying to make animations that react to the player's mouse. I looked all over the unity reference site and nothing works. What am I missing?
asked Nov 01 '11 at 03:53 AM
First thing to check is wether the functions are called at all, e.g. using
If they are not:
All 3D interaction between gameobjects and the mouse needs be done through COLLIDERS. Colliders are responsible of intercepting events between gameobjects and the world, basically.
1 add a collider of any type to your gameobject
2 add the following code in a c# script that you attach to the gameobject
3 in play mode click over the gameobject
answered Nov 01 '11 at 09:35 AM