ContextualMenuManipulator
Manipulator that displays a contextual menu when the user clicks the right mouse button or presses the menu key on the keyboard.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: PointerManipulator
- Implements: IManipulator
public class ContextualMenuManipulator : PointerManipulator, IManipulator
Constructors
Constructor | Description |
|---|---|
| ContextualMenuManipulator(System.Action{UnityEngine.UIElements.ContextualMenuPopulateEvent}) | Constructor. |
Methods
Method | Description |
|---|---|
| IsOSXContextualMenuPlatform | Check whether the handling of contextual menu events needs to be adapted for OSX. |
| RegisterCallbacksOnTarget | Register the event callbacks on the manipulator target. |
| UnregisterCallbacksFromTarget | Unregister the event callbacks from the manipulator target. |