public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Edit Style")) { EditStyleWindow.Open(); } }
public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Edit Style")) { if (EditorWindow.HasOpenInstances <EditStyleWindow>()) { EditorWindow.FocusWindowIfItsOpen <EditStyleWindow>(); } else { EditStyleWindow.ShowDefaultWindow(); } } }