Version: 2022.1
언어: 한국어

IMGUIOverlay

class in UnityEditor.Overlays

/

다음으로부터 상속:Overlays.Overlay

매뉴얼로 전환

설명

IMGUIOverlay is an implementation of Overlay that provides a IMGUIContainer.

Inherit IMGUIOverlay to author Overlay elements implemented using the legacy IMGUI controls.

Public 함수

CreatePanelContentCreatePanelContent is invoked by the OverlayCanvas when this Overlay is shown.
OnGUIImplement IMGUI controls and logic in this method.

상속된 멤버

정적 변수

ussClassNameUSS class name of elements of this type.

변수

collapsedDefines whether the overlay is in collapsed form.
containerWindowEditorWindow the overlay is contained within.
displayedShows or hides the overlay.
displayNameName of overlay used as title.
floatingReturns true if overlay is floating, returns false if overlay is docked in a corner or in a toolbar.
floatingPositionLocal position of closest overlay corner to closest dockposition when floating.
idOverlay unique ID.
isInToolbarReturns true if overlay is docked in a toolbar.
layoutDescribes the presentation mode for an Overlay.

Public 함수

CloseRemove the Overlay from its OverlayCanvas.
CreateContentCreate a new VisualElement containing the contents of this Overlay.
OnCreatedOnCreated is invoked when an Overlay is instantiated in an Overlay Canvas.
OnWillBeDestroyedCalled when an Overlay is about to be destroyed.
UndockIf this Overlay is currently in a toolbar, it will be removed and return to a floating state.

Events

collapsedChangedInvoked when Overlay.collapsed value is changed.
displayedChangedThis callback is invoked when the Overlay.displayed value has been changed.
floatingChangedCalled when the value of floating has changed.
floatingPositionChangedThis event is invoked when Overlay.floatingPosition is changed.
layoutChangedSubscribe to this event to be notified when the Overlay.Layout property is modified.