/// <summary> /// Inicializes Node Ports /// </summary> public void IOInit() { InputPort.SetParent(this); foreach (NodeOutput o in OutputPorts) { o.SetParent(this); } }
/// <summary> /// Assing a new id for this node /// </summary> public void SetID() { id = System.Guid.NewGuid().ToString(); if (InputPort != null) { InputPort.ClearOutput(); InputPort.SetParent(this); } for (int i = 0; i < OutputPorts.Length; i++) { OutputPorts[i].ClearAll(true); OutputPorts[i].SetParent(this); } }