Class ConstantNode
The constant node outputs a constant value that can be set in the graph editor.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: InsaneScatterbrain.ScriptGraph
Syntax
[Serializable]
public class ConstantNode : ProviderNode, IProviderNode, IScriptNode, INode, ISerializationCallbackReceiver
Properties
ConstType
Returns the value type.
Declaration
public Type ConstType { get; }
Property Value
Type | Description |
---|---|
System.Type |
Value
Gets/sets the constant value.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
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 |
---|---|---|
System.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
UnityEngine.ISerializationCallbackReceiver