# UndoEndRecordStateMachine()

> Signals the end of an undoable operation. Sends the undo data to the editor undo system and refreshes the graph view with the changes made.

## Definition

* **Type:** Method
* **Namespace:** [Unity.GraphToolkit.Editor](/engine/6000.7/script-reference/unity/graphtoolkit/editor.md)
* **Assembly:** UnityEditor

```csharp
public void UndoEndRecordStateMachine()
```

### Remarks

Call this after you trigger a sequence of graph modification methods to finalize recording the operations to the undo stack. Call [StateMachine.UndoBeginRecordStateMachine](/engine/6000.7/script-reference/unity/graphtoolkit/editor/statemachine/undobeginrecordstatemachine.md) before the sequence to signal the operations to be recorded.
