Class DropdownMenuEventInfo
This class provides information about the event that triggered displaying the drop-down menu.
Namespace: UnityEngine.UIElements
Syntax
public class DropdownMenuEventInfo : object
Constructors
DropdownMenuEventInfo(EventBase)
Constructor.
Declaration
public DropdownMenuEventInfo(EventBase e)
Parameters
Type | Name | Description |
---|---|---|
EventBase | e |
Properties
localMousePosition
If the triggering event was a mouse event, this property is the mouse position. The position is expressed using the coordinate system of the element that received the mouse event. Otherwise this property is zero.
Declaration
public Vector2 localMousePosition { get; }
Property Value
Type | Description |
---|---|
Vector2 |
modifiers
If modifier keys (Alt, Ctrl, Shift, Windows/Command) were pressed to trigger the display of the dropdown menu, this property lists the modifier keys.
Declaration
public EventModifiers modifiers { get; }
Property Value
Type | Description |
---|---|
EventModifiers |
mousePosition
If the triggering event was a mouse event, this property is the mouse position expressed using the global coordinate system. Otherwise this property is zero.
Declaration
public Vector2 mousePosition { get; }
Property Value
Type | Description |
---|---|
Vector2 |