Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public class ContextualMenuPopulateEvent : MouseEventBase<ContextualMenuPopulateEvent>, IDisposable, IMouseEvent

Constructors

Constructor

Description

ContextualMenuPopulateEvent()Constructor.

Properties

Property

Description

menuThe menu to populate.
triggerEventThe event that triggered the ContextualMenuPopulateEvent.

Methods

Method

Description

InitResets the event members to their initial values.

Static Methods

Method

Description

GetPooledGets 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
Dispose()
to release them.

Inheritance

Inherited Members