# Sandbox.Helpers.UndoSystem.SetSnapshotFunction

```csharp
void SetSnapshotFunction(System.Func<System.Action> snapshot)
```

> **Obsolete.** Auto Snapshotting is obsolete and no longer working. If you really want to use snapshotting for Undo, create/restore the snapshots manually in the undo/redo actions provided to UndoSystem.Insert

### Parameters

- `snapshot` (`System.Func<System.Action>`)

Declared in [Sandbox.Helpers.UndoSystem](/api/Sandbox.Helpers.UndoSystem).
Assembly: `Sandbox.Tools`.
