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

            window.Show();
            Instance = window;
        }
Beispiel #2
0
        void OnSceneChanged()
        {
            // Get EditorWindow if present in editor to display error message
            PSSceneManagerEditorWindow window = PSSceneManagerEditorWindow.Instance;
            string errorMessage = "";

            if (!PSSceneManagerUtility.LoadSceneAsset())
            {
                errorMessage = "No data to load";
            }

            if (window != null)
            {
                window.Status = errorMessage;
            }
        }