DisplayMenuIfEventMatches(EventBase, IEventHandler)
Checks if the event triggers the display of the contextual menu. This method also displays the menu.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public abstract void DisplayMenuIfEventMatches(EventBase evt, IEventHandler eventHandler)
Parameters
The event to inspect.
The element for which the menu is displayed.
Remarks
This is an abstract method. Each concrete implementation of the ContextualMenuManager defines the events that will display the menu.