DockZone
DockZone describes the area of the screen that an Overlay is displayed in.
Read time 1 minuteLast updated 11 days ago
Definition
- Type: Enum
- Namespace: UnityEditor.Overlays
- Assembly: UnityEditor
public enum DockZone
Remarks
Examples
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 | Overlays are displayed in the bottom toolbar. |
| Floating | Overlays are not bound to a toolbar or column. |
| LeftColumn | Overlays are displayed in the left column. |
| LeftDynamicPanel | Overlays are displayed in the left full-height dynamic panel. |
| LeftToolbar | Overlays are displayed in the left toolbar. |
| RightColumn | Overlays are displayed in the right column. |
| RightDynamicPanel | Overlays are displayed in the right full-height dynamic panel. |
| RightToolbar | Overlays are displayed in the right toolbar. |
| TopToolbar | Overlays are displayed in the top toolbar. |