Class OutputNode
The output node is used to take a value from the script graph and output it as part of the return value when done processing the script graph.
Inherited Members
Namespace: InsaneScatterbrain.ScriptGraph
Syntax
[Serializable]
public class OutputNode : ConsumerNode, IConsumerNode, IScriptNode, INode, ISerializationCallbackReceiver
Constructors
OutputNode()
Declaration
protected OutputNode()
Properties
OutputParameterId
The name of the output variable.
Declaration
public string OutputParameterId { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Create(string, Type)
Factory method to create a new output node with the given name of the given type, for the given graph.
Declaration
public static OutputNode Create(string outputParameterId, Type type)
Parameters
Type | Name | Description |
---|---|---|
string | outputParameterId | The name. |
Type | type | The type. |
Returns
Type | Description |
---|---|
OutputNode | The new output node. |
Create<T>(string)
Factory method to create a new output node with the given name of the given type, for the given graph.
Declaration
public static OutputNode Create<T>(string outputParameterId)
Parameters
Type | Name | Description |
---|---|---|
string | outputParameterId | The name. |
Returns
Type | Description |
---|---|
OutputNode | The new output 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()
OnLoadInputPorts()
This method should contain all the in port initialization code. In other words, it should contain all the AddIn calls for the node.
Declaration
public override void OnLoadInputPorts()
Overrides
Implements
UnityEngine.ISerializationCallbackReceiver