# Editor.DockManager.OnStateRestoring

```csharp
System.Action<IReadOnlyCollection<string>> OnStateRestoring { get; set; }
```

Called before a layout state is restored with the names of the open docks saved in that layout.
Dynamic dock types can use this to create their dock widgets before native restoration begins.

Declared in [Editor.DockManager](/api/Editor.DockManager).
Assembly: `Sandbox.Tools`.
