public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Open Window")) { RotatorEditorWindow.OpenWindow(); } }
public static void OpenWindow() { RotatorEditorWindow window = GetWindow <RotatorEditorWindow>("Rotator Setter Windows"); }