Esempio n. 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();
        }
Esempio n. 2
0
        private static void OnUpdate()
        {
            EditorApplication.update -= OnUpdate;

            SGESettings newSettings = ScriptableObject.CreateInstance <SGESettings>();

            AssetDatabase.CreateAsset(newSettings, SettingsPath);
            AssetDatabase.SaveAssets();
            AssetDatabase.Refresh();
            GettingStartedWindow window = (GettingStartedWindow)EditorWindow.GetWindow(typeof(GettingStartedWindow));

            window.Show();
        }