- Home /
Question by
smithr3339 · Oct 23, 2013 at 11:36 PM ·
controllerrunanswers
What is the script to access my animation called "run" in my animator controller
I have an animation called Run in my CONTROLLER. How do I call this?
Comment
Answer by tanoshimi · Oct 24, 2013 at 09:14 AM
You don't "call" an animation in an Animator controller - it's a state machine, so you pass in whatever parameters are required to transition from the current state to the "Run" state, using Animator.SetFloat(), Animator.SetBool() etc.
The Mecanim tutorial video explains this: http://video.unity3d.com/video/7362044/
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Compiler Error...Help Needed. 0 Answers
Can't add script behaviour Run. 1 Answer
Player Controller Rotation Script Help 2 Answers