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

IMouseEvent

interface in UnityEngine.Experimental.UIElements

Switch to Manual

Description

Interface for mouse events.

Variables

altKeyReturn true if the Alt key is pressed.
buttonInteger representing the pressed mouse button: 0 is left, 1 is right, 2 is center.
clickCountNumber of clicks.
commandKeyReturn true if the Windows/Command key is pressed.
ctrlKeyReturn true if the Control key is pressed.
localMousePositionThe mouse position in the current target coordinate system.
modifiersFlag set holding the pressed modifier keys (Alt, Control, Shift, Windows/Command).
mouseDeltaMouse position difference between the last mouse event and this one.
mousePositionThe mouse position in the panel coordinate system.
shiftKeyReturn true if the Shift key is pressed.