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
- [Android] Texture Compression default texture format is set to PVRTC when building via script BuildPipeline.BuildPlayer
- [Android][GameActivity] APK built with Development Build enabled gets flagged as having Malware
- Default name of manually created Global Light 2D GameObject differs from the one included in the initial project Scene
- Option for "Acceleration Structure Build Flags" cannot be toggled when Lightmaps have been Generated for a Mesh Renderer
- Lights in Batch keep resetting to 0 in the Light Batching Debugger when a new GameObject is created and the mouse cursor is hovered over the Inspector window
Add comment