ContextualMenuManipulator
Manipulator that displays a contextual menu when the user clicks the right mouse button or presses the menu key on the keyboard.
阅读时间1 分钟最后更新于 1 个月前
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. |