Search Issue Tracker
By Design
Votes
0
Found in
5.4.2f1
Issue ID
844322
Regression
No
Last frame of the animation is skipped if resources are loaded in the same frame
How to reproduce:
1. Open the attached project
2. Open and play test scene
3. Click on the button in the center of the canvas
4. This button calls "Test.OnButtonClicked" that does 2 things:
a. Instantiates prefab called "BigPrefab" located in the "Resources" folder
b. Fires the trigger "Trigger" on the "AnimatedObject"
Actual result: Depending on how fast loading resources on your computer is, this will have 2 outcomes:
- If BigPrefab is loaded faster than the animation "animationTest" is played on the "AnimatedObject", "AnimatedObject" Color.alpha will become 0.
- If BigPrefab is loaded slower than the animation "animationTest" is played, "AnimatedObject" Color.alpha will remain 1.
Expected result: Result of the animation should not depend on how long it takes to load the asset.
Reproducible: 5.4.2f2, 5.5.0b9
Not reproducible: 5.3.6p8
By Design:
When disabling "Write Defaults" in an Animator state, we provide no guarantee that the State is completed during Transition. This is a current limitation of our animation engine. And this means that when disabling WriteDefaults we are dependant on frame rate.
We suggest using WriteDefaults to "on" and fully define the state of the animation when the alpha should be 0.
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
Add comment