# UndoBeginRecordGraph(string)

> Signals the beginning of an undoable operation.

## Definition

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

```csharp
public void UndoBeginRecordGraph(string actionName)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the operation, which is displayed in the undo menu.

### Remarks

Call this before you trigger a sequence of graph modification methods to record those operations to the undo stack. Call [Graph.UndoEndRecordGraph](/engine/6000.5/script-reference/unity/graphtoolkit/editor/graph/undoendrecordgraph.md) after the sequence to signal that the operation is complete.

Throws `InvalidOperationException` if there is no undo operation currently registered to the Graph.
