- Home /
Animation Speed with Variable?
Hi, I'd like to use Unity's new Mecanim system for my character, however I'm wondering if there is any way to use a variable to control the speed of an animation clip. In Unity's Animator, there is only a one time input for the speed of an animation, you can't chose to use a variable here.
I need to be able to control my speed with, for example, axis input so that walk and run animations slow down or speed up along with the overall speed the character is moving.
I'm sure Unity wouldn't have locked this important feature.
Is this possible? Thank you!
Answer by whydoidoit · Oct 14, 2013 at 07:55 AM
Use a blend tree that blends two copies of the run, one at 0 speed and one at the maximum speed using a variable. Modify that variable and the run speed will increase.
Your answer
Follow this Question
Related Questions
Mecanim Runtime Controller is Private! 4 Answers
How do I make the transition between two states in the "Animator" happen instantly? 3 Answers
Mecanim deltaPosition is increased with more avatars 1 Answer
How to use mecanim to play specific animation clips when public static int condition is reached? 2 Answers
Does anyone have an example of an animator with diagnol locomotion? 0 Answers