static void Init() { // Get existing open window or if none, make a new one: RuntimeSettingsEditor window = (RuntimeSettingsEditor)EditorWindow.GetWindow(typeof(RuntimeSettingsEditor)); window.titleContent = new GUIContent(RuntimeSettings.windowTitle); window.Show(); if (!File.Exists("Assets/" + RuntimeSettings.FullAssetPathNameWithExt)) { CreateAssetAtPath(RuntimeSettings.pathToAsset); } else { RuntimeSettings.LoadAsset(); } }