- Home /
want to play GameObject Animation in reverse.
at start, a gameObject goes from point a to point b
it does not loop and stays at point b afterwords.
I want a method to play that animation in reverse
like gameObject move from point b to a
.
also, I want a method to know when animation started and when it ended,
like if I want to do something after animation ends how to know animation ended ?
.
I used following script for this
void Update ()
{
if (Input.GetKey("g"))
{
anim.speed = -1;
anim.Play("");
}
}
but it shows error "Animator.speed can only be negative when Animator recorder is enabled."
what does it mean ?
how do I enable recorder ?
Answer by qobion · Oct 30, 2018 at 10:26 PM
You can set your animation speed to -1 but not the animator speed
Your answer
Follow this Question
Related Questions
Set up Animator with specific seconds 1 Answer
Playing animation in reverse plays it once only! 0 Answers
2D Animation does not start 1 Answer
How to loop an animation in reverse? 0 Answers
Reverse animation problem 1 Answer