public override void OnInspectorGUI() { EditorGUILayout.LabelField("Please edit this object type using the FOVE Settings window."); if (GUILayout.Button("FOVE Settings")) { FoveSettingsWindow.EditSettings(); } }
public static void EditSettings() { FoveSettingsWindow window = GetWindow <FoveSettingsWindow>(); GUIContent title = new GUIContent("FOVE Settings"); window.titleContent = title; window.Show(); }