Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug EditorGUI.GetPropertyHeight erases content of the Label

Discussion in 'Editor & General Support' started by keni4, Apr 3, 2022.

  1. keni4

    keni4

    Joined:
    Nov 30, 2014
    Posts:
    31
    In any
    Code (CSharp):
    1. public override void OnGUI (Rect position, SerializedProperty property, GUIContent label);
    Try do this
    Code (CSharp):
    1. EditorGUI.GetPropertyHeight(property);
    2. Debug.Log($"{label.text} | {label.tooltip}");
    Notice that label became empty (both text and tooltip, if there was any)
    Got this bug on Unity 2021.2.17 f1