public override void OnNodeProcess()
        {
            while (input.Count < graphInput.outputValues.Count)
            {
                graphInput.outputValues.RemoveAt(0);
            }

            //push input values to the subgraph's input node:
            for (int i = 0; i < input.Count; i++)
            {
                graphInput.outputValues.AssignAt(i, input.At(i), input.NameAt(i), true);
            }
        }
Пример #2
0
 public override void OnNodeProcess()
 {
     //if there is no upper graph, datas will be automatically pull-out
     if (upperNode != null)
     {
         while (upperNode.output.Count > inputValues.Count)
         {
             upperNode.output.RemoveAt(0);
         }
         for (int i = 0; i < inputValues.Count; i++)
         {
             upperNode.output.AssignAt(i, inputValues.At(i), inputValues.NameAt(i), true);
         }
     }
 }