Search Issue Tracker

By Design



Found in





Issue ID




Animation window values are not automatically updated when they are changed in a script



Reproduction steps:
1. Open the attached “BugRepro” project
2. Open the “Assets/Scenes/SampleScene“ Scene
3. Open the “Assets/Clip” Animation clip with the Animation window
4. Lock the Animation window by clicking the Lock button
5. In the Hierarchy window, select the “AnimationEditor“ GameObject
6. In the Inspect window, open the context menu of the “Animation Editor (Script)” Component and select “Execute”
7. In the Animation window, observe the Animation clip Position.x value
8. Select Curves mode and observe the Animation clip Position.x value again

Expected result: The Position.x value is updated as soon as the script is executed, so the values in steps 7 and 8 are the same
Actual result: The value only gets updated after switching the timeline view mode

Reproducible with: 2021.3.35f1, 2022.3.20f1, 2023.2.10f1, 2023.3.0b7

Reproducible on: Windows 11
Not reproducible on: No other environment tested

  1. Resolution Note:

    For editing animation clip curves in the editor, it is recommended to use the functions provided in the `AnimationUtility` class. Specifically, the `SetEditorCurve` function will correctly synchronize the curves in the Animation window with any updated curve values. The extension functions available in `AnimationClip` are mostly available to support workflows for legacy clips and therefore will not always fully support the current animation clip editor workflows.

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.