contextType
Describes in which context a VisualElement hierarchy is being run.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Property
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
ContextType contextType { get; }
Remarks
The context type of a Panel affects how it resolves certain styles and receives specific events. For example, drag-and-drop and command events are only sent to Editor-type Panels.
Additional Resources: DragAndDropEventBase<T>, CommandEventBase<T>