- Home /
Animation events & animator.speed
Hello,
I'm using animator.speed to control the direction and pause a sprite animation.
I also have an animation event setup for the final frame on the animation. The idea being that if the animation reaches the final frame, it should then run a function.
This works, however if I change the speed of the animation (say reverse it by setting animator.speed = 1f) the event from the final frame seems to trigger right away.
Should I not be modifying the speed directly? Is this known to mess with animation events?
Thanks for any insight!
Answer by wuzibu · May 27, 2015 at 10:34 AM
Seems like we're getting help with the release of 5.1 http://forum.unity3d.com/threads/mecanim-events-firing-incorectly-when-clip-is-playing-in-reverse-bug.226992/
Your answer
Follow this Question
Related Questions
Animation System in 4.3 1 Answer
How do I stop sprite animation on last frame? 2 Answers
Most efficient way to do 2D animation 2 Answers
Anima2d: How to use a single sprite for two paws? 0 Answers
SpriteManager 2 1 Answer