| Parameter | Description |
|---|---|
| position | The position of the node. |
| valueType | The type of the value held by the constant. |
| defaultValue | The default value. |
IConstantNode The newly created constant node.
Creates and adds a new constant node to the graph.
If successful, also adds the node's type to the graph's list of supported types. Enclose this method with Graph.UndoBeginRecordGraph and Graph.UndoEndRecordGraph to add this operation to the undo stack and to update the graph view with the changes.
| Parameter | Description |
|---|---|
| position | The position of the node. |
| defaultValue | The default value. |
IConstantNode The newly created constant node.
Creates and adds a new constant node to the graph.
If successful, also adds the node's type to the graph's list of supported types. Enclose this method with Graph.UndoBeginRecordGraph and Graph.UndoEndRecordGraph to add this operation to the undo stack and to update the graph view with the changes.