文档

Unity Engine

Unity Engine

IPanel

Interface for classes implementing UI panels.
阅读时间1 分钟最后更新于 1 个月前

Definition

public interface IPanel : IDisposable

Properties

Property

Description

contextTypeDescribes in which context a VisualElement hierarchy is being ran.
contextualMenuManagerThe Contextual menu manager for the panel.
dispatcherThis Panel EventDispatcher.
focusControllerReturn the focus controller for this panel.
isDirtyChecks whether any element within the panel has had any changes to its state since the panel was last rendered.
scaledPixelsPerPointGives the current scaled pixels per point value of the panel.
visualTreeRoot of the VisualElement hierarchy.

Methods

Method

Description

PickReturns the top element at this position. Will not return elements with pickingMode set to PickingMode.Ignore.
PickAllReturns all elements at this position. Will not return elements with pickingMode set to PickingMode.Ignore.

Inheritance

Inherited Members