- Home /
How to advance a legacy animation by n number of seconds/frames?
I attempting to advance/offset a legacy animation by specifying the number of frames or seconds to advance. The desired output is that when the legacy Animation
plays, it starts off the default legacy Animation Clip
to the frame specified by the offset. How can this be achieved?
NOTE: I tried looking at the documentation page for legacy Animation but I can't seem to find methods or properties related to producing the effect.
Thank you very much.
there is a work around
keep a function trigger in the animation where you want to advance,
increase the animation speed
when it comes to trigger, play with default speed
you only have control on animation speed.
NaRango4: workaround for what? Both - mecanim and legacy animations support setting the normalized time (in mecanim, its Animator.CrossFade)
Answer by Immanuel-Scholz · Nov 17, 2014 at 10:24 AM
Unity does not really use "frames" for their animation, so "current frame" is not an thing you can specify.
But you can set the animation to any time by just setting AnimationState.time
Your answer
Follow this Question
Related Questions
Animation frame size workaround? 0 Answers
Animation lengths doesn't match 1 Answer
Animation View Properties Disappearing 0 Answers
Animation Bugging out 2 Answers
Animation AddClip Silent Failure 0 Answers