Class PointerInputModule.MouseButtonEventData
Information about a mouse button event.
Inherited Members
Namespace: UnityEngine.EventSystems
Assembly: UnityEngine.UI.dll
Syntax
public class PointerInputModule.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 |
---|---|
bool |
ReleasedThisFrame()
Was the button released this frame?
Declaration
public bool ReleasedThisFrame()
Returns
Type | Description |
---|---|
bool |