void OnEnable()
        {
            if (m_NavigationHistory == null)
            {
                m_NavigationHistory = new StageNavigationHistory();
                m_NavigationHistory.Init();
            }

            EditorApplication.update                += Update;
            EditorSceneManager.sceneOpened          += OnSceneOpened;
            EditorSceneManager.newSceneCreated      += OnNewSceneCreated;
            EditorApplication.editorApplicationQuit += OnQuit;
        }
Example #2
0
        void OnEnable()
        {
            if (m_NavigationHistory == null)
            {
                m_NavigationHistory = new StageNavigationHistory();
                var mainStage = CreateInstance <MainStage>();
                m_NavigationHistory.ClearForwardHistoryAndAddItem(mainStage);
            }

            EditorApplication.update                += Update;
            EditorSceneManager.sceneOpened          += OnSceneOpened;
            EditorSceneManager.newSceneCreated      += OnNewSceneCreated;
            EditorApplication.editorApplicationQuit += OnQuit;
        }
Example #3
0
        void OnEnable()
        {
            if (m_NavigationHistory == null)
            {
                m_NavigationHistory = new StageNavigationHistory();
                m_NavigationHistory.ClearForwardHistoryAndAddItem(m_NavigationHistory.GetOrCreateMainStage());
            }

            EditorApplication.update                += Update;
            EditorSceneManager.sceneOpened          += OnSceneOpened;
            EditorSceneManager.newSceneCreated      += OnNewSceneCreated;
            AssetEvents.assetsChangedOnHDD          += OnAssetsChangedOnHDD;
            PrefabUtility.savingPrefab              += OnSavingPrefab;
            EditorApplication.playModeStateChanged  += OnPlayModeStateChanged;
            EditorApplication.editorApplicationQuit += OnQuit;
            PrefabStage.prefabStageSavedAsNewPrefab += OnPrefabStageSavedAsNewPrefab;
        }