| Parameter | Description |
|---|---|
| variable | The variable to reference. Must belong to this graph. |
| position | The position of the node. |
IVariableNode The newly created variable node.
Creates and adds a new variable node referencing an existing variable.
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.