public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { if (this.editor == null) { this.editor = new LayoutSettingsEditor(); } this.editor.OnGUI(position, property, label); }
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { if (this.editor == null) { this.editor = new LayoutSettingsEditor(); } //property.serializedObject.Update(); this.editor.OnGUI(position, property, label); property.serializedObject.ApplyModifiedProperties(); }