Scripting API

ContextualMenuManager

class in UnityEngine.UIElements · UnityEngine.UIElementsModule

4 of 4 of Unity's membersUnity's documentation
In Tassix

Shows contextual menus: a populate event builds one for a target, then it's displayed. Runtime panels have none, as in Unity.

Methods 2

void DisplayMenu(EventBase? triggerEvent, IEventHandler target)
abstract void DisplayMenuIfEventMatches(EventBase evt, IEventHandler eventHandler)