Scripting API

ContextualMenuPopulateEvent

class in UnityEngine.UIElements · UnityEngine.UIElementsModule · inherits from MouseEventBase<ContextualMenuPopulateEvent>

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

Builds an element's contextual menu: it trickles down and bubbles up from the element; the manager then shows the menu.

Constructors 1

Properties 2

DropdownMenu menu { get; }
EventBase? triggerEvent { get; }

Methods 1

static ContextualMenuPopulateEvent GetPooled(EventBase? triggerEvent, DropdownMenu menu, IEventHandler target, ContextualMenuManager? menuManager)