Beispiel #1
0
 ///Set GraphEditor inspected references
 public static void SetReferences(Graph newGraph, GraphOwner owner, IBlackboard blackboard)
 {
     if (current == null)
     {
         Debug.Log("GraphEditor is not open.");
         return;
     }
     willRepaint  = true;
     fullDrawPass = true;
     rootGraph    = newGraph;
     targetOwner  = owner;
     if (rootGraph != null)
     {
         rootGraph.currentChildGraph = null;
         rootGraph.UpdateNodeIDs(true);
         rootGraph.UpdateReferences(owner, blackboard);
     }
     GraphEditorUtility.activeElement = null;
     current.Repaint();
 }