Search Unity

Feedback Problem with the description of GUI.changed.

Discussion in 'Documentation' started by geniusz, Jan 10, 2022.

  1. geniusz

    geniusz

    Joined:
    Nov 21, 2014
    Posts:
    38
    Description
    Returns true if any controls changed the value of the input data.

    In fact, you can also set this property, which I realized after reading UnityEditor.dll.
    Code (CSharp):
    1. Event.current.Use();
    2. GUI.changed = true;
    Setting it to true can force the current PropertyDrawer to repaint. I think it will help some developers if you add it to the documentation.