Example #1
0
        /// <summary>
        /// Creates a new NodeOutput in NodeBody of specified type at the specified Node Side
        /// </summary>
        public static NodeOutput Create(Node nodeBody, string outputName, string outputType, NodeSide nodeSide, float sidePosition)
        {
            NodeOutput output = CreateInstance <NodeOutput> ();

            output.type = outputType;
            output.InitBase(nodeBody, nodeSide, sidePosition, outputName);
            nodeBody.Outputs.Add(output);
            return(output);
        }