Reset() public method

public Reset ( ) : void
return void
Esempio n. 1
0
        void OnUndo()
        {
            // We have to rescan patches and nodes,
            // because there may be an unknown ones.
            _patchManager.Reset();
            if (_patch != null && _patch.isValid)
            {
                _patch.Rescan();
            }

            // Manually update the GUI.
            Repaint();
        }
Esempio n. 2
0
        protected virtual void OnEnable()
        {
            ResetSelection();
            _patchManager = new PatchManager();
            _nodeFactory  = new NodeFactory();
            _patchManager.Reset();
            _patch = _patchManager.RetrieveLastSelected();

            Undo.undoRedoPerformed += OnUndo;
            EditorApplication.hierarchyWindowChanged += OnHierarchyWindowChanged;
        }
Esempio n. 3
0
        void OnEnable()
        {
            _patchManager = new PatchManager();
            _nodeFactory  = new NodeFactory();
            _mainViewSize = Vector2.one * 300; // minimum view size

            _patchManager.Reset();
            _patch = _patchManager.RetrieveLastSelected();

            Undo.undoRedoPerformed += OnUndo;
            EditorApplication.hierarchyWindowChanged += OnHierarchyWindowChanged;
        }
Esempio n. 4
0
        // Reset the internal state.
        void ResetState()
        {
            _patchManager.Reset();

            if (_patch == null || !_patch.isValid)
            {
                _patch = _patchManager.RetrieveLastSelected();
            }
            else
            {
                _patch.Rescan();
            }

            _mainViewSize = Vector2.one * 300; // minimum view size

            Repaint();
        }
Esempio n. 5
0
        void OnEnable()
        {
            _patchManager = new PatchManager();
            _nodeFactory = new NodeFactory();
            _mainViewSize = Vector2.one * 300; // minimum view size

            _patchManager.Reset();
            _patch = _patchManager.RetrieveLastSelected();

            Undo.undoRedoPerformed += OnUndo;
            EditorApplication.hierarchyWindowChanged += OnHierarchyWindowChanged;
        }