Class ConstantNode
The constant node outputs a constant value that can be set in the graph editor.
Inherited Members
Namespace: InsaneScatterbrain.ScriptGraph
Syntax
public class ConstantNode : ProviderNode, IProviderNode, IScriptNode, INode
Properties
ConstType
Returns the value type.
Declaration
public Type ConstType { get; }
Property Value
Type | Description |
---|---|
Type |
Value
Gets/sets the constant value.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Methods
Create(Type)
Factory method for creating a new constant node of the given type for the given graph.
Declaration
public static ConstantNode Create(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The type. |
Returns
Type | Description |
---|---|
ConstantNode | The new constant node. |
OnAfterDeserialize()
Declaration
public void OnAfterDeserialize()
OnBeforeSerialize()
Declaration
public void OnBeforeSerialize()
OnLoadOutputPorts()
Loads the output ports. In the case of the constant node only a single port is being added that returns the set constant value.
Declaration
public override void OnLoadOutputPorts()
Overrides
Implements
ISerializationCallbackReceiver