GetButton(string)
Returns the binary value of a button.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.ClusterInputModule
public static bool GetButton(string name)
Parameters
Name of input to poll.
Returns
Type | Description |
|---|---|
| bool |
Remarks
True for pressed, false otherwise.