Class RuntimeContextMenuEvent
Event sent in a VisualElement when a context menu is requested at runtime if it has a RuntimeContextMenuManipulator attached.
Implements
Inherited Members
EventBase<RuntimeContextMenuEvent>.TypeId()
EventBase<RuntimeContextMenuEvent>.Init()
EventBase<RuntimeContextMenuEvent>.GetPooled()
EventBase<RuntimeContextMenuEvent>.Dispose()
EventBase<RuntimeContextMenuEvent>.eventTypeId
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class RuntimeContextMenuEvent : EventBase<RuntimeContextMenuEvent>, IDisposable
Properties
localPosition
The local position of the context menu in the target element's coordinate space.
Declaration
public Vector2 localPosition { get; }
Property Value
Type | Description |
---|---|
Vector2 |
menuBuilder
The menu builder that will be used to build the context menu.
Declaration
public MenuBuilder menuBuilder { get; }
Property Value
Type | Description |
---|---|
MenuBuilder |