Search Issue Tracker
By Design
By Design in 2023.2.X
Votes
0
Found in
2021.3.29f1
2022.3.7f1
2023.1.8f1
2023.2.0b4
Issue ID
UUM-45411
Regression
No
Animation Rigging pivoted target is not respected when parented to the character GameObject itself
Reproduction steps:
1. Open project “Animation-Rigging-Experiment.zip”
2. Open scene “Sample”
3. Enter Play Mode
4. Observe the character on the right (“Example 2 [Pivot Parented to Animator]\SWAT Guy” GameObject in the Hierarchy) through Game view
Expected result: the character updates its rig to look toward the “Target” GameObject (as the “Example 1 [Pivot not Parented]\SWAT Guy” GameObject on the left)
Actual result: the character doesn't update its rig to look toward the “Target” GameObject
Reproducible with: 2021.3.29f1, 2022.3.7f1, 2023.1.8f1, 2023.2.0b4
Reproducible on: macOS Ventura 13.2.1 (Intel), Windows 11 (by the reporter)
Notes:
- Reproducible in Standalone Player
- The target for the character on the right is parented under a pivot transform and the pivot transform is parented under the character GameObject
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
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
Resolution Note:
Since the rotation values of the pivot game object are driven by a script, it means the animation stream must be updated in order to read from these new values when the pivot game object is nested in the animated hierarchy. Otherwise, the constraints will always read the default values unless that game object is animated by a clip or another constraint.
To fix your issue, simply add a `RigTransform` component to your pivot game object. This way, scene transforms will be read and fed through the stream for constraints to evaluate.
https://docs.unity3d.com/Packages/com.unity.animation.rigging@1.3/manual/RiggingWorkflow.html#rig-transform
Resolution Note (2023.2.X):
Since the rotation values of the pivot game object are driven by a script, it means the animation stream must be updated in order to read from these new values when the pivot game object is nested in the animated hierarchy. Otherwise, the constraints will always read the default values unless that game object is animated by a clip or another constraint.
To fix your issue, simply add a `RigTransform` component to your pivot game object. This way, scene transforms will be read and fed through the stream for constraints to evaluate.
https://docs.unity3d.com/Packages/com.unity.animation.rigging@1.3/manual/RiggingWorkflow.html#rig-transform