- Home /
How to call an Animation?
Is there a way to write a code where lets say you press spacebar and it would call a certain animation? If so how would i go about doing this after creating the animation in Unity
Comment
Answer by DaveA · Mar 21, 2011 at 06:02 PM
http://unity3d.com/support/documentation/ScriptReference/Animation.Play.html
and
http://unity3d.com/support/documentation/ScriptReference/Input.GetKeyDown.html
Your answer
Follow this Question
Related Questions
How to prevent a function from being called more than once 1 Answer
Call a function at a certain frame in animation without Animation Events? 1 Answer
How to call animation from another Script in C#? 1 Answer
Can the animation editor create local rotational data? 3 Answers
Adding animation clips via script 2 Answers