Hard to make it any clearer in the title, so I explain here:
I have an Animator with a State of about 1 second duration. I have added a speed multiplier parameter on the state. After a while, I set the multiplier to -1.0f to reverse that animation. So far so good.
From the end of the animation state, until I begin its reversal, let's say it's been 5 seconds. When I initiate the reversal, the animation doesn't immediately start playing. Instead it sits idle for another 5 seconds, THEN I see the animation playing in reverse! If I trigger the reversal 2 seconds later, it takes another 2 seconds to actually see the animation reversing, and so on.
It's like the animation is still playing after it ends, so when I reverse it, it reverses through the time it's been finished and idle as well... This is quite weird. Anyone care to shed some light here, I'd really appreciate it!
Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.
The best place to ask and answer questions about development with Unity.
To help users navigate the site we have posted a site navigation guide.
If you are a new user to Unity Answers, check out our FAQ for more information.
Make sure to check out our Knowledge Base for commonly asked Unity questions.
If you are a moderator, see our Moderator Guidelines page.
We are making improvements to UA, see the list of changes.
Answers and Comments
188 People are following this question.
Stop animation at any frame? or have two idle states?
Checking how far along a animation is
Animation start delay
Get when animator change state
Returning back to idle state