| Parameter | Description |
|---|---|
| variable | The variable to remove. Must belong to this graph. |
| forceRemove | If true, removes the variable and all variable nodes referencing it. If false, removal fails if nodes exist. |
bool True if the variable was removed; otherwise false.
Removes a variable from the state machine.
Enclose this method with StateMachine.UndoBeginRecordStateMachine and StateMachine.UndoEndRecordStateMachine to add this operation to the undo stack and to update the graph view with the changes.