Search Issue Tracker

Won't Fix

Votes

0

Found in

2021.3.31f1

2022.3.12f1

2023.1.18f1

2023.2.0b15

2023.3.0a11

Issue ID

UUM-54652

Regression

No

Animating Transform of GameObject with off-center Pivot with Tool Handle Position set as Center does not record Position or Rotation

-

How to reproduce:
1. Open the attached project
2. Open Scene "SampleScene"
3. When starting to Record the Animation change Position OR Rotation to activate both values to Record, but do not change both of them
4. Record an Animation either with the Timeline or the Animation Window for GameObject "Corridor" by rotating it along the Y Axis using the Rotation Tool in Scene View with Tool Handle Position set as "Center"
5. Move along the frames to observe the recorded Animation

Actual result: During the recording of the Animation, the Rotation and Position are indicated that they are being recorded to offset the models' non-centered Pivot but when replaying the Animation the Position or Rotation is not changed (depending on which value you activated, even though whichever you chose, both are indicated to the user that they are recorded) and the model only rotates on its off-center Pivot even though the Tool Handle Position is set as "Center" or only the Position is changed

Expected result: The model animation changes the Position and Rotation in the same way as when it is being recorded and as it is being indicated to the user with the red color

Reproducible with: 2021.3.31f1, 2022.3.12f1, 2023.1.18f1, 2023.2.0b15, 2023.3.0a11

  1. Resolution Note:

    Unfortunately, this is a know limitation of the Mecanim Playable system, used to create the Director Component (Timeline).
    Basically, the underlaying animation system always requires Position & Rotation transforms to be animated.

    In Timeline, we simulate animating a single transform (Pos or Rot) by not exposing the curve for the unused transform and use the value at creation time instead, which makes it look & feel like you are only animating one of these transforms. The visual feedback is actually correct, but we are not showing the constate curve (no keys) for the unused transform. You can see which curves are actually animated by expanding the curves view (show curves view button). To be clear, the unused transform in this case is a static value, the user must add a key in order to change the value of this transform. This is why the visual feedback is on both position and rotation transforms since the clip is feeding the channel a value, even if it’s not “animated”.
    The workaround to the workflow you are describing is simple…
    Add a key to all transforms you want to animate on frame 1, then everything will behave as expected.

    For all reasons described above, we are closing this bug as won’t fix

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.