Skip to content

format

typescript
Touch.phase

class: Touch

description

(Read Only) The current state of the touch event.

On mobile devices, players can interact with the game by touching the screen. This method can be used to determine the state of the touch event.

parameter

param_nametypedescription

reture

typedescription
TouchPhaseThe current state of the touch event.

code example

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