Class Node.InputAttribute
Overrides XNode.Node.InputAttribute with custom default values.
Namespace: Holoride.ElasticSDK.Graph
Assembly: Holoride.ElasticSDK.Runtime.dll
Syntax
[AttributeUsage(AttributeTargets.Field)]
[MeansImplicitUse]
public class Node.InputAttribute : Node.InputAttribute
Constructors
InputAttribute(ShowBackingValue, ConnectionType, TypeConstraint, bool, bool)
Mark a serializable field as an input port. You can access this through XNode.Node.GetInputPort(System.String).
Declaration
public InputAttribute(Node.ShowBackingValue backingValue = ShowBackingValue.Never, Node.ConnectionType connectionType = ConnectionType.Override, Node.TypeConstraint typeConstraint = TypeConstraint.Strict, bool dynamicPortList = false, bool optional = false)
Parameters
Type | Name | Description |
---|---|---|
XNode.Node.XNode.Node.ShowBackingValue | backingValue | Whether we display the backing value for this port as an editor field. |
XNode.Node.XNode.Node.ConnectionType | connectionType | Whether we allow multiple connections. |
XNode.Node.XNode.Node.TypeConstraint | typeConstraint | Constrains which input connections can be made to this port. |
bool | dynamicPortList | If true, will display a reorderable list of inputs instead of a single port. Will automatically add and display values for lists and arrays. |
bool | optional | Defines whether input to this port is optional. |
Fields
Optional
Declaration
public bool Optional
Field Value
Type | Description |
---|---|
bool |