Class ContextualMenuManipulator
Manipulator that displays a contextual menu when the user clicks the right mouse button or presses the menu key on the keyboard.
Inherited Members
Namespace: UnityEngine.UIElements
Syntax
public class ContextualMenuManipulator : MouseManipulator, IManipulator
Constructors
ContextualMenuManipulator(System.Action<ContextualMenuPopulateEvent>)
Constructor.
Declaration
public ContextualMenuManipulator(System.Action<ContextualMenuPopulateEvent> menuBuilder)
Parameters
Type | Name | Description |
---|---|---|
System.Action<ContextualMenuPopulateEvent> | menuBuilder |
Methods
RegisterCallbacksOnTarget()
Register the event callbacks on the manipulator target.
Declaration
protected override void RegisterCallbacksOnTarget()
Overrides
UnregisterCallbacksFromTarget()
Unregister the event callbacks from the manipulator target.
Declaration
protected override void UnregisterCallbacksFromTarget()