ContextualMenuPopulateEvent
The event sent when a contextual menu requires menu items. The event trickles down and bubbles up.
Read time 3 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Inherits from: MouseEventBase<ContextualMenuPopulateEvent>
- Implements: IDisposable, IMouseEvent
public class ContextualMenuPopulateEvent : MouseEventBase<ContextualMenuPopulateEvent>, IDisposable, IMouseEvent
Constructors
Constructor | Description |
|---|---|
| ContextualMenuPopulateEvent() | Constructor. |
Properties
Property | Description |
|---|---|
| menu | The menu to populate. |
| triggerEvent | The event that triggered the ContextualMenuPopulateEvent. |
Methods
Method | Description |
|---|---|
| Init | Resets the event members to their initial values. |
Static Methods
Method | Description |
|---|---|
| GetPooled | Gets an event from the event pool and initializes it with the given values. Use this function instead of creating new events. Events obtained using this method need to be released back to the pool. You can use |