Class PointerInputModule.MouseButtonEventData
Information about a mouse button event.
Namespace: UnityEngine.EventSystems
Syntax
public class MouseButtonEventData
Fields
buttonData
Pointer data associated with the mouse event.
Declaration
public PointerEventData buttonData
Field Value
Type | Description |
---|---|
PointerEventData |
buttonState
The state of the button this frame.
Declaration
public PointerEventData.FramePressState buttonState
Field Value
Type | Description |
---|---|
PointerEventData.FramePressState |
Methods
PressedThisFrame()
Was the button pressed this frame?
Declaration
public bool PressedThisFrame()
Returns
Type | Description |
---|---|
Boolean |
ReleasedThisFrame()
Was the button released this frame?
Declaration
public bool ReleasedThisFrame()
Returns
Type | Description |
---|---|
Boolean |