GetMouseButton(int)
Interface to Input.GetMouseButton. Can be overridden to provide custom input instead of using the Input class.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public virtual bool GetMouseButton(int button)
Parameters
The button id. Values are 0 for left button, 1 for right button, 2 for the middle button.
Returns
Type | Description |
|---|---|
| bool | Returns whether the given mouse button is held down. |