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
- Errors when rendering a camera to render texture with only depth
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
Add comment