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
- VFX Graph Memory leak when calling the ClearPropertyBinders and AddRemoveVFXProperty
- Entering "Configure Avatar" inside the Inspector locks it
- [Render Graph Viewer] Resource list icons cropped and in inconsistent positions
- Scene View with Debug Draw Mode enabled is gray when GPU Resident Drawer is enabled
- The UI is not visible when resizing out of focus built Player window with Application.runInBackground set to false
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.