Version: 2022.3
언어: 한국어

DockZone

enumeration

매뉴얼로 전환

설명

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

Use DockZone in an OverlayAttribute to set the default location for an Overlay.

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"); }

변수

LeftToolbarOverlays are displayed in the left toolbar.
RightToolbarOverlays are displayed in the right toolbar.
TopToolbarOverlays are displayed in the top toolbar.
BottomToolbarOverlays are displayed in the bottom toolbar.
LeftColumnOverlays are displayed in the left column.
RightColumnOverlays are displayed in the right column.
FloatingOverlays are not bound to a toolbar or column.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961