예제 #1
0
        static void Init()
        {
            // Get existing open window or if none, make a new one:
            GettingStartedWindow window = (GettingStartedWindow)EditorWindow.GetWindow(typeof(GettingStartedWindow));

            window.Show();
        }
예제 #2
0
        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();
        }