Search Issue Tracker
Duplicate
Votes
0
Found in
2019.4
2019.4.0f1
2020.2
2021.1
2021.2
Issue ID
1306411
Regression
No
Playable graph interferes with physics in Normal Update Mode when Animator doesn't using the same Animation Clip
Reproduction steps:
1. Open user attached project
2. Open Assets\SampleScene
3. Enable the Animators on the two Prefabs in the Scene
4. Press Play and observe the Animations
Expected result: Both Objects are animated the same
Actual result: The Object with a PlayableGraph is not animated by Physics
Reproducible with: 2019.4.19f1, 2020.2.2.3f1, 2021.1.0b5, 2021.2.0a3
Could not test with: 2018.4.31f1 (Project breaks)
Workaround:
Changing the Update Mode to Animate Physics causes both to be Animated as expected
-
Resolution Note (2022.1.X):
The reason that the animator controller constructed in the editor works is : When starting PlayMode, the transform bindings are created before the unity event system and the value of the component matches the constant value.
The reason that the playable constructed at runtime does not work is : When starting PlayMode, the physics loop go before the animation loops, which changes the component rotation data (confirmed using data breakpoints). This makes the above code think that there is a mismatch between the component and the constant value, which will consider all further bindings as non constant.A new Advanced option was created for the animator to make sure we can shoose if we want to optimize constant curves or not
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
- Shader Graph Node information is briefly displayed in Graph Inspector when clicking on Category in the Blackboard
- Module installation fails with "Download failed: Validation Failed" errors when using beta.2 Hub version
- JsonConvert conversion fails trying to call GetCallbackMethodsForType when [OnDeserialized] is used in a class
- Shader Graph Category dropdown cannot be expanded/collapsed when clicking on the text
- Different text alignment in the column header in Entities "System" window
This is a duplicate of issue #1239258