Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public abstract void DisplayMenuIfEventMatches(EventBase evt, IEventHandler eventHandler)

Parameters

The event to inspect.

eventHandler

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.