format
typescript
Touch.phaseclass: 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_name | type | description |
|---|
reture
| type | description |
|---|---|
TouchPhase | The current state of the touch event. |
code example
javascript
const touch = Input.GetTouch(0);
const count = touch.phase;