Search Issue Tracker

Fixed in 2018.1

Fixed in 2017.1, 2017.2, 2017.3

Votes

0

Found in

2017.1.1f1

Issue ID

952170

Regression

Yes

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

Animation

-

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:
2017.1.0a6

Reproduced with:
2017.1.0a6, 2017.3.0b1

Not reproducible with:
2017.1.0a5

Comments (6)

  1. A8de7dbd3bdfe887d24a96933e1b32d9?d=mm

    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.

  2. A8de7dbd3bdfe887d24a96933e1b32d9?d=mm

    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.

  3. B5ec2202b50aa2109655a72f72455f8e?d=mm

    Rukas90

    Sep 21, 2018 16:30

    Have this issue with 2018.2.7f1

  4. 9dd7ed82d6ab0f3745ccfea9864628dc?d=mm

    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

  5. 10a7c7c232f8a328a6085485e13be1b8?d=mm

    Papiertig0r

    Jan 06, 2018 10:46

    I concur, this issue is NOT fixed

  6. A22c0c5aa4ca8b27947c3741bb8e18b8?d=mm

    Ludiq

    Dec 05, 2017 19:14

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

All about bugs

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