Class InputNode
The input node is used to output the value of an associated input parameter.
Inherited Members
Namespace: InsaneScatterbrain.ScriptGraph
Syntax
[Serializable]
public class InputNode : ProviderNode, IProviderNode, IScriptNode, INode, ISerializationCallbackReceiver
Constructors
InputNode()
Declaration
protected InputNode()
Properties
InputParameterId
Gets the input variable's name.
Declaration
public string InputParameterId { get; set; }
Property Value
Type | Description |
---|---|
string |
OutPort
Gets the out port.
Declaration
public OutPort OutPort { get; }
Property Value
Type | Description |
---|---|
OutPort |
Methods
Create(string, Type)
Factory method to create a new input node with the given name of the given type, for the given graph.
Declaration
public static InputNode Create(string inputParameterId, Type type)
Parameters
Type | Name | Description |
---|---|---|
string | inputParameterId | The name. |
Type | type | The type. |
Returns
Type | Description |
---|---|
InputNode | The new input node. |
Create<T>(string)
Factory method to create a new input node with the given name of the given type, for the given graph.
Declaration
public static InputNode Create<T>(string inputParameterId)
Parameters
Type | Name | Description |
---|---|---|
string | inputParameterId | The name. |
Returns
Type | Description |
---|---|
InputNode | The new input node. |
Type Parameters
Name | Description |
---|---|
T |
OnAfterDeserialize()
Implement this method to receive a callback after Unity deserializes your object.
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Implement this method to receive a callback before Unity serializes your object.
Declaration
public void OnBeforeSerialize()
OnLoadOutputPorts()
This method should contain all the out port initialization code. In other words, it should contain all the AddOut calls for the node.
Declaration
public override void OnLoadOutputPorts()
Overrides
Implements
UnityEngine.ISerializationCallbackReceiver