- Home /
Play multiple reversed animations with animation.PlayQueued
I'm trying to play 2 animations, one after the other and both in reverse from last frame.
I'm using animation.PlayQueued() to queue them.
The first animation reverse fine but the second animation always start at frame 0 (or 1?).
Here's my code*:
Foreach (AnimationState an in animation)
{
if (an.name == "Entrence")
{
AnimationState firstAnim = animation.PlayQueued(animation["FirstAnimation"]);
firstAnim.speed = -1;
firstAnim.time = firstAnim.length - 0.01f;
AnimationState secondAnim = animation.PlayQueued(an.name);
secondAnim.speed = -1;
secondanim.time = secondAnim.length - 0.01f;
}
}
*Not copy/pasted but re-typed for readability
Comment
Your answer
Follow this Question
Related Questions
Why is Animation Not Playing in Reverse? 2 Answers
Button to play animation in reverse 1 Answer
Animations aren't playing in reverse. 0 Answers
Flip back a frame 1 Answer
[Solved] Reverse animation 1 Answer