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

IMouseEvent

interface in UnityEngine.Experimental.UIElements

マニュアルに切り替える

説明

Interface for mouse events.

変数

actionKeyReturns true if the platform specific action key is pressed. This key is Command on macOS and Control otherwise.
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.