Class PointerInputModule.MouseState
Namespace: UnityEngine.EventSystems
Syntax
protected class MouseState
Methods
AnyPressesThisFrame()
Declaration
public bool AnyPressesThisFrame()
Returns
| Type | Description |
|---|---|
| Boolean |
AnyReleasesThisFrame()
Declaration
public bool AnyReleasesThisFrame()
Returns
| Type | Description |
|---|---|
| Boolean |
GetButtonState(PointerEventData.InputButton)
Declaration
public PointerInputModule.ButtonState GetButtonState(PointerEventData.InputButton button)
Parameters
| Type | Name | Description |
|---|---|---|
| PointerEventData.InputButton | button |
Returns
| Type | Description |
|---|---|
| PointerInputModule.ButtonState |
SetButtonState(PointerEventData.InputButton, PointerEventData.FramePressState, PointerEventData)
Declaration
public void SetButtonState(PointerEventData.InputButton button, PointerEventData.FramePressState stateForMouseButton, PointerEventData data)
Parameters
| Type | Name | Description |
|---|---|---|
| PointerEventData.InputButton | button | |
| PointerEventData.FramePressState | stateForMouseButton | |
| PointerEventData | data |