Search Issue Tracker

Duplicate

Votes

0

Found in

2017.1.0f1

Issue ID

930156

Regression

Yes

AnimationCurve value cannot be changed in custom Inspector when it is accessed as serialized property's animationCurveValue

IMGUI

-

To reproduce:

1. Open the project, attached by the tester (curveInspector.zip)
2. Open the "scene" scene
3. Select "GameObject" in the Hierarchy
4. In the Inspector, change the animation curve
5. (Optional) Review the TestEditor.cs script

Expected: changes for the animation curve are saved when it is accessed as a serialized property's animationCurveValue and drawn in the Editor via EditorGUILayout.CurveField

Reproduced in 2017.1.0a6, 2017.1.0f1, 2017.1.0f3, 2017.2.0b3
Did not reproduce in 5.6.2p3, 2017.1.0a5

Workaround:
- draw AnimationCurve serialized property via EditorGUILayout.PropertyField
- get the script via target property and then change the value directly with EditorGUILayout.CurveField

Won't fix: This has been introduced by fix for another case and there is no way to fix this unless we revert that

Comments (5)

  1. Rukas90

    Sep 21, 2018 16:30

    Have this issue with 2018.2.7f1

  2. DreamKnight

    Dec 19, 2017 00:20

    Fixed in 2017.2.1f1.

  3. LazloBonin

    Dec 05, 2017 19:13

    Still an issue in 2017.2.0f3. What is the workaround? The documentation hasn't been updated at all, and this propery is currently useless.

  4. Windresta

    Oct 16, 2017 05:59

    Reproduced in 2017.2.0f3

  5. Windresta

    Oct 16, 2017 05:21

    Reproduced in 2017.1.1f1

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.