Rescan() public method

public Rescan ( ) : void
return void
コード例 #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();
        }
コード例 #2
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();
        }