예제 #1
0
        //public static void RepaintAll()
        //{
        //    NodeEditorWindow[] windows = Resources.FindObjectsOfTypeAll<NodeEditorWindow>();
        //    foreach (var window in windows) window.Repaint();
        //}

        protected override void OnFocus()
        {
            base.OnFocus();
            CurrentNodeEditorWindow = this;

            if (_graph == null)
            {
                return;
            }
            _graphEditor = NodeGraphEditor.GetEditor(_graph);
            //Blackboard.Instance.CurrentLocalVariableInventory = _graph.GetVariableInventory();
            if (_graphEditor != null)
            {
                NodeEditorUtilities.AutoSaveAssets();
            }
        }