GetMouseButton(int)
Interface to Input.GetMouseButton. Can be overridden to provide custom input instead of using the Input class.
阅读时间1 分钟最后更新于 1 个月前
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. |