Example #1
0
 private static Port GeneratePort(
     Node node,
     Direction portDirection,
     Port.Capacity capacity = Port.Capacity.Single)
 {
     return(node.InstantiatePort(Orientation.Horizontal, portDirection, capacity, typeof(float)));
 }
Example #2
0
        private static Port GenerateOutputPort(Node node)
        {
            var port = GeneratePort(node, Direction.Output);

            port.portName = "Output";
            node.outputContainer.Add(port);
            return(port);
        }