RemoveVariable(IVariable, bool)
Removes a variable from the state machine.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Method
- Namespace: Unity.GraphToolkit.Editor
- Assembly: UnityEditor
public bool RemoveVariable(IVariable variable, bool forceRemove = false)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the variable was removed; otherwise false. |
Remarks
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.