# Undock()

> If this Overlay is currently in a toolbar, it will be removed and return to a floating state.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Overlays](/engine/6000.5/script-reference/unityeditor/overlays.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public void Undock()
```
