Input.GetMouseButton
每一帧鼠标处于按下状态都会返回 true
定义
public static bool GetMouseButton(int button);
| 参数名 | 类型 | 必要 | 说明 |
|---|---|---|---|
| button | int | 是 | 按键对应数字0:鼠标左键1:鼠标右键2:鼠标中键 |
每一帧鼠标处于按下状态都会返回 true
public static bool GetMouseButton(int button);
| 参数名 | 类型 | 必要 | 说明 |
|---|---|---|---|
| button | int | 是 | 按键对应数字0:鼠标左键1:鼠标右键2:鼠标中键 |