I’mtrying to make a “kick” animation complete in a variable amount of time. So let’s say by default the kick completes its animation in 1 second, but the player received a powerup to make it complete in .7 seconds. How would I script it to make that happen? Or is there something in built into Mecanim that would do that?
There is the speed multiplier that is available for each clip in the Animator. You could always increase this to make your animation go faster.
Thanks for the reply!
I ended up using the parameter for the speed multiplier in Mecanim in conjunction with Animator’s GetCurrentAnimatorStateInfo function to get the AnimatorStateInfo which I used to get the length of the animation clip.