Search Issue Tracker
By Design
Votes
0
Found in
2018.4
2019.4
2020.3
2021.1
2021.1.12f1
2021.2
Issue ID
1344292
Regression
No
Animator Blend Tree weight defaults to 0 for a frame when AnimationClipPlayable is created with script in Play Mode
How to reproduce:
1. Open the attached project "FlickeringIssue.zip"
2. Press Play
3. Select the Zoologist Game Object in the Hierarchy window
4. In the Inspector window, on TestAnimation Component select the Play Clip toggle box
5. Observe the Scene view
Expected results: No animation flickering when swapping AnimationClipPlayable
Actual results: Animation flickers to T pose when AnimationClipPlayable is swapped
Reproducible with: 2018.4.35f1, 2019.4.28f1, 2020.3.11f1, 2021.1.12f1, 2021.2.0a20
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
- Crash on block_locate_free when rendering a specific scene
- A submenu disappears on MacOS when the MenuItem method argument "isVariableFunction" is set to "false" and priority argument is set to "-1"
- The Sprite Library Editor window has an incorrect order of Sprites when the Sprites are reordered and the order saved
- Tilemap Tiles do not get lit up unless the Light Range is greater than the distance between the position of the Tile before the transformation and the Light Source when the Tile is transformed with Tilemap.SetTransformMatrix method
- The Editor and "Reloading Domain" windows are frozen when entering Play Mode
Resolution Note:
This issue is expected in the sample scene since the playable graph is connected during the 'LateUpdate' which has run after the animation update. Changing the playable graph topology resets the character to bind pose but since this is done after the animation update, the new playable graph doesn't have a chance to run.
I managed to make the scene work by changing LateUpdate to Update.
See https://docs.unity3d.com/Manual/ExecutionOrder.html for reference