Skip to content

GUIEventData

extends EngineObject

GUIEventData is used to manage data for UI events.

To obtain GUIEventData, refer to Control.guiEventData.

成员变量

GUIEventData.eventType : EventType
(Read-only) Event type EventType
GUIEventData.wheelScrollDelta : Vector2
(Read Only) The amount of scrolling on the mouse wheel.
GUIEventData.button : MouseButton
(Read Only) The type of mouse button MouseButton.
GUIEventData.isNone : boolean
(Read Only) Determines if the event is valid.
GUIEventData.clickCount : number
(Read-only) Click Count
GUIEventData.position : Vector2
(Read Only) The screen coordinates of the click.
GUIEventData.moveDelta : Vector2
(Read-only) The movement amount.