Search Issue Tracker
By Design
Votes
1
Found in
2018.4
2018.4.21f1
2021.1
Issue ID
1251985
Regression
No
Animator state is exited before animation is completed when Exit Time is set to 1
How to reproduce:
1. Open the attached project from "AnimBugTest_1251985.zip"
2. Open scene "SampleScene"
3. Enter Play Mode
4. Click the button labeled "Start" in Game View
5. Observe Console
Expected result: By the end of the animation Alpha should show 0
Actual result: By the end of the animation Alpha variable fluctuates around 0, but never 0
Reproducible with: 2018.4.28f1, 2019.4.13f1, 2020.1.10f1, 2020.2.0b9, 2021.1.0a2
Notes: One workaround is that you can add a single frame animation to the Idle State. So even if the previous State does not fully finish playing the animation, the Idle State shows the final frame so visually everything looks correct.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mouse input is registered incorrectly in Custom RP when downscaling Render Target and rendering Overlay UI before final upscale
- Time.deltaTime is locked to the display's refresh rate when the built Player is moved to a Secondary Display and Windowed Mode is used
- Crash on RaiseException when importing a specific asset
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
Resolution Note:
This is by design. We don't guarantee that the last frame of the animation is evaluated because the frame rate can differ and the animation system needs to respect the delta times.
Turning on Write Default allows for deterministic evaluation.