Class RuntimeContextMenuManipulator
A manipulator that handles context menu interactions for UI elements.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public class RuntimeContextMenuManipulator : PointerManipulator, IManipulator
Remarks
It uses the legacy ContextualMenuManipulator for context menu handling in the Editor, and a custom implementation for runtime.
Constructors
RuntimeContextMenuManipulator(Action<RuntimeContextMenuEvent>)
Creates a new instance of the RuntimeContextMenuManipulator class.
Declaration
public RuntimeContextMenuManipulator(Action<RuntimeContextMenuEvent> runtimeBuilder)
Parameters
Type | Name | Description |
---|---|---|
Action<RuntimeContextMenuEvent> | runtimeBuilder | The action that builds the context menu at runtime. |
Methods
RegisterCallbacksOnTarget()
Called to register event callbacks on the target element.
Declaration
protected override void RegisterCallbacksOnTarget()
Overrides
UnregisterCallbacksFromTarget()
Called to unregister event callbacks from the target element.
Declaration
protected override void UnregisterCallbacksFromTarget()