# DockZone

> DockZone describes the area of the screen that an Overlay is displayed in.

## Definition

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

```csharp
public enum DockZone
```

## Remarks

Use [DockZone](/engine/6000.5/script-reference/unityeditor/overlays/dockzone.md) in an [OverlayAttribute](/engine/6000.5/script-reference/unityeditor/overlays/overlayattribute.md) to set the default location for an [Overlay](/engine/6000.5/script-reference/unityeditor/overlays/overlay.md).

## Examples

```csharp
using UnityEditor;
using UnityEditor.Overlays;
using UnityEngine;
using UnityEngine.UIElements;

// Use OverlayAttribute to specify that in new Scene Views, when this Overlay is first opened it will be in the
// top toolbar, aligned to the left side.
[Overlay(typeof(SceneView), "Docked Top Toolbar, Left Aligned", defaultDockZone = DockZone.TopToolbar, defaultDockPosition = DockPosition.Top)]
class MyOverlay : Overlay
{
    public override VisualElement CreatePanelContent() => new Label("Overlay Contents");
}
```

## Fields

| Value                                                                                                   | Description                                                    |
| ------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| [BottomToolbar](/engine/6000.5/script-reference/unityeditor/overlays/dockzone/bottomtoolbar.md)         | Overlays are displayed in the bottom toolbar.                  |
| [Floating](/engine/6000.5/script-reference/unityeditor/overlays/dockzone/floating.md)                   | Overlays are not bound to a toolbar or column.                 |
| [LeftColumn](/engine/6000.5/script-reference/unityeditor/overlays/dockzone/leftcolumn.md)               | Overlays are displayed in the left column.                     |
| [LeftDynamicPanel](/engine/6000.5/script-reference/unityeditor/overlays/dockzone/leftdynamicpanel.md)   | Overlays are displayed in the left full-height dynamic panel.  |
| [LeftToolbar](/engine/6000.5/script-reference/unityeditor/overlays/dockzone/lefttoolbar.md)             | Overlays are displayed in the left toolbar.                    |
| [RightColumn](/engine/6000.5/script-reference/unityeditor/overlays/dockzone/rightcolumn.md)             | Overlays are displayed in the right column.                    |
| [RightDynamicPanel](/engine/6000.5/script-reference/unityeditor/overlays/dockzone/rightdynamicpanel.md) | Overlays are displayed in the right full-height dynamic panel. |
| [RightToolbar](/engine/6000.5/script-reference/unityeditor/overlays/dockzone/righttoolbar.md)           | Overlays are displayed in the right toolbar.                   |
| [TopToolbar](/engine/6000.5/script-reference/unityeditor/overlays/dockzone/toptoolbar.md)               | Overlays are displayed in the top toolbar.                     |
