GPUGraph.SimpleNode.SimpleNode C# (CSharp) Method

SimpleNode() public method

Creates a new node that calls a function with a constant number of inputs.
public SimpleNode ( Rect pos, string expr, string name ) : System
pos UnityEngine.Rect
expr string /// An expression using the given inputs. /// NOTE: in the expression, an input should be surrounded by apostrophes /// to distinguish it from the rest of the code. ///
name string
return System
        public SimpleNode(Rect pos, string expr, string name, params Param[] inputs)
            : base(pos,
				   inputs.Select(p => new NodeInput(p.DefaultValue)).ToList(),
				   inputs.Select(p => p.Name).ToList(),
				   inputs.Select(p => p.DefaultValue).ToList())
        {
            Expr = expr;
            Name = name;
        }

Same methods

SimpleNode::SimpleNode ( SerializationInfo info, StreamingContext context ) : System
SimpleNode::SimpleNode ( string expr, string name ) : System