GetMouseButtonDown(int)
Interface to Input.GetMouseButtonDown. Can be overridden to provide custom input instead of using the Input class.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
public virtual bool GetMouseButtonDown(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 true during the frame the user pressed the given mouse button. |