Ejemplo n.º 1
0
        private void OnDestroy()
        {
            thisWindow = null;
            EditorApplication.hierarchyWindowChanged -= OnHierarchyChanged;
            SceneView.onSceneGUIDelegate             -= OnScene;
            Undo.undoRedoPerformed -= UndoRedoCallback;
            EditorApplication.playmodeStateChanged -= PlayModeStateChanged;
            EditorApplication.update -= SequenceUpdate;

            StopProcessingAnimationMode();

            if (CurrentSequence)
            {
                CurrentSequence.Stop();
            }
        }
Ejemplo n.º 2
0
        private void OnEnable()
        {
            showAnimationModeTime = EditorApplication.timeSinceStartup;
            thisWindow            = this;
            hideFlags             = HideFlags.HideAndDontSave;

            if (ContentRenderer == null)
            {
                ContentRenderer = ScriptableObject.CreateInstance <JContent>();
            }
            ContentRenderer.SequenceWindow = this;

            EditorApplication.hierarchyWindowChanged -= OnHierarchyChanged;
            EditorApplication.hierarchyWindowChanged += OnHierarchyChanged;
            SceneView.onSceneGUIDelegate             -= OnScene;
            SceneView.onSceneGUIDelegate             += OnScene;
            Undo.undoRedoPerformed -= UndoRedoCallback;
            Undo.undoRedoPerformed += UndoRedoCallback;
            EditorApplication.playmodeStateChanged -= PlayModeStateChanged;
            EditorApplication.playmodeStateChanged += PlayModeStateChanged;
            EditorApplication.update -= SequenceUpdate;
            EditorApplication.update += SequenceUpdate;
        }