Experimental: this API is experimental and might be changed or removed in the future.

EventInfo

class in UnityEngine.Experimental.UIElements

切换到手册

描述

A class holding information about the event that triggered the display of the contextual menu.

变量

localMousePosition如果触发事件是鼠标事件,则此属性是鼠标位置。该位置使用接收鼠标事件的元素的坐标系表示。否则此属性为零。
modifiersIf modifier keys (Alt, Control, Shift, Windows/Command) were pressed to trigger the display of the contextual menu, this property lists the modifier keys.
mousePosition如果触发事件是鼠标事件,则此属性是使用全局坐标系表示的鼠标位置。否则此属性为零。

构造函数

ContextualMenu.EventInfo构造函数。