Skip to content

格式

typescript
Touch.phase

所属类: Touch

描述

(只读)当前触摸事件的状态。

在移动设备上,玩家可以通过触摸屏幕来与游戏进行交互,该方法可以用于确定触摸事件的状态。

参数

参数名类型描述

返回值

类型描述
TouchPhase当前触摸事件的状态

代码示例

javascript
 const touch = Input.GetTouch(0);    
 const count = touch.phase;