static void Init() { // Get existing open window or if none, make a new one: GettingStartedWindow window = (GettingStartedWindow)EditorWindow.GetWindow(typeof(GettingStartedWindow)); window.Show(); }
private static void OnUpdate() { EditorApplication.update -= OnUpdate; URPDebugViewsSettings newSettings = ScriptableObject.CreateInstance <URPDebugViewsSettings>(); AssetDatabase.CreateAsset(newSettings, SettingsPath); AssetDatabase.SaveAssets(); AssetDatabase.Refresh(); GettingStartedWindow window = (GettingStartedWindow)EditorWindow.GetWindow(typeof(GettingStartedWindow)); window.Show(); }