diff --git a/Editor/SerializableCallbackDrawer.cs b/Editor/SerializableCallbackDrawer.cs index 561796c..1d6207c 100644 --- a/Editor/SerializableCallbackDrawer.cs +++ b/Editor/SerializableCallbackDrawer.cs @@ -16,7 +16,7 @@ public override void OnGUI(Rect position, SerializedProperty property, GUIConten property.serializedObject.ApplyModifiedProperties(); // Indent label - label.text = " " + label.text; + label = new GUIContent(label) { text = " " + label.text }; #if UNITY_2019_1_OR_NEWER GUI.Box(position, "");