|
What im trying to do is have an animation to be played when the the left mouse button is clicked. I have already modelled a gun rigged it and added a recoil animation on blender which ive imported into unity, and now i need to script it which i cannot do. I have looked for tutorials for this everywhere but they dont work can anyone help me? I am trying to learn script by the way.
(comments are locked)
|
|
It was surprisingly easy to add an animation to our project. The animation is part of the model we imported from Maya. Our model had one animation. To trigger it, we add a script with code like this to the model in the scene: Holy crap! i wasnt expecting it to be that easy thanks a lot! oh and if i wanted the animation to be played when i press a key would i just change ("Fire1") to ("w")?
Sep 17 '11 at 07:34 PM
Dreave
Use the following for the X key: Unity makes handling input remarkably easy on all devices:
Sep 17 '11 at 07:37 PM
jahroy
Thanks your the best!
Sep 17 '11 at 08:01 PM
Dreave
(comments are locked)
|
