Exemple #1
0
        public override NodeExecutionContext NextNode(NodeExecutionContext context)
        {
            NTNode   node = GetNode(nameof(flowOut));
            NodePort port = GetPort(nameof(flowOut));

            Debug.Log("Next node ? " + node);


            return(new NodeExecutionContext {
                node = node, inputPort = port?.Connection, outputPort = port
            });
        }
        public NTNode GetNode(string portName)
        {
            NodePort nodePort = GetOutputPort(portName);

            if (!nodePort.IsConnected)
            {
                return(null);
            }

            NTNode node = nodePort.Connection.node as NTNode;

            return(node);
        }