Search Issue Tracker

Fixed in 2018.1.X

Fixed in 2017.1.X, 2017.2.X, 2017.3.X



Found in


Issue ID




EditorGUILayout.CurveField does not return edited curve when dynamically creating curve



Reproduction steps(GIF attached):
1. Open the attached project.
2. Go to Window > Curve editor in the menu bar.
3. Click on the curve field (gray rectangle).
4. Double click on the graph to add a couple of points.
- Curve field doesn't update.
5. Close the Curve window.
6. Click on the curve field.
- Points are lost.
- Console reports no keyframes.

Regression introduced in:

Reproduced with:
2017.1.0a6, 2017.3.0b1

Not reproducible with:

Comments (7)

  1. GabCap

    Sep 18, 2019 13:03

    This issue is not fixed on 2018.4.8f and as far as I understand, this problem it will not be fixed. Fixed should not be the status. Thanks.

  2. Nickpofig

    Dec 02, 2018 16:18

    And yeah. Problem still there [Unity 2018.2]. Please do not mark issue as fixed, when you are not sure about it or even understand what people are complaining about, it is kinda rude.

  3. Nickpofig

    Dec 02, 2018 16:10

    This issue can not be fixed. Because of the problem's nature.
    [ EditroGUILayout.CurveField ] on click opens Curve Editor Window.
    When you changes curve in the window [EditorGUILayout.CurveField] call will return curve, but next call will return null. It is semantic problem. Unity can't fix it, because they dissalow you to just call render of the curve field and not return its changed value immediatly.
    Unity Editor GUI controls are rigid, it is thier mistake in editor design.

  4. Rukas90

    Sep 21, 2018 16:30

    Have this issue with 2018.2.7f1

  5. mortenblaa

    Mar 27, 2018 09:43

    Workaround: Use EditorGUILayout.PropertyField() instead of EditorGUILayout.CurveField()

    This also draws the curve field as expected, tested in 2017.1.1f1

  6. Papiertig0r

    Jan 06, 2018 10:46

    I concur, this issue is NOT fixed

  7. LazloBonin

    Dec 05, 2017 19:14

    This issue can be reproduced in 2017.2.0f3. It is NOT fixed.

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.