Search Issue Tracker
Won't Fix
Votes
1
Found in
2020.3.42f1
2021.3.14f1
2022.1.23f1
2022.2.0f1
2023.1.0a20
Issue ID
UUM-20012
Regression
No
GameObject remains constrained by previous animation keys after animation state transitions
Reproduction steps:
1. Open the “AnimationIssue“ project
2. Open the “SampleScene” scene
3. Enter the Play Mode
4. Observe the left-and-right-moving “Bad” GameObject
Expected result: the GameObject also rotates
Actual result: the GameObject does not rotate
Reproduced in: 2020.3.42f1, 2021.3.14f1, 2022.1.23f1, 2022.2.0f1, 2023.1.0a20
Reproduced using: macOS Monterey 12.0.1 (Intel)
Notes:
- We expect to be able to rotate the animated GameObject via script when its current animation does not animate rotation
- Being unable to rotate the animated GameObject seems to be a byproduct of a previous animation state that animated rotation
- Also reproduced in Player
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
- Usage of Adaptive Probe Volumes throws a lot of IndexOutOfRangeException and Assertion Failed errors
- Prefab overrides don't recover missing managed references
- Trail Renderer visual doesn't match the positions of vertices when they have been offset
- [Mobile] The Material is not visible when using the Decal Renderer Feature
- Uncaught TypeError: Cannot read properties of undefined is thrown when the tab is inactive for several minutes
Resolution Note:
This is caused by a limitation of the Animator. Once a transform vector is animated, the channel is binded to the Animator and cannot be altered from an external source, like a script.
Workaround: One way to work around this problem is to use an additional GameObject in the hierarchy for your script transforms, keeping them independent from the animated GameObjects, although in the same hierarchy.