public static void Init() { IsInit = false; NodeTypes.FetchNode(); NodeInputSystem.Fetch(); ConnectionType.Fetch(); TreeNodeReflectionSystem.Fetch(); NodeEditor.CreateManager(); UnitEditor.CreateManager(); IsInit = true; if (TrigInit != null) { TrigInit(); } }
public static Node CreateNode(Vector2 pos, string nodeId) { Node node = NodeTypes.getDefaultNode(nodeId); if (node == null) { Debug.Log("node editor running is warning!"); TriggerEditorUtility.Init(); } var npos = (pos - NodeEditor.curNodeEditorState.PanOffset) / NodeEditor.curNodeEditorState.GraphZoom; node = node.Create( npos); node.Init(); return(node); }
public static void PasteNode() { CallBack(NodeTypes.getDefaultNode(memoryNode.GetId)); }