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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
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.