public static bool OnOpen(int instanceID, int line) { NodeScript nodeGraph = EditorUtility.InstanceIDToObject(instanceID) as NodeScript; if (nodeGraph != null) { Open(nodeGraph); return(true); } return(false); }
public static void Open(NodeScript graph) { if (!graph) { return; } NodeBaseEditor w = GetWindow(typeof(NodeBaseEditor), false, "Node Base Editor", true) as NodeBaseEditor; Current = w; w.owner = graph; w.wantsMouseMove = true; w.LoadData(); }