DisplayMenuIfEventMatches(EventBase, IEventHandler)
Checks if the event triggers the display of the contextual menu. This method also displays the menu.
Read time 1 minuteLast updated 13 days ago
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.