format
typescript
Touch.tapCountclass: Touch
description
(Read Only) The number of times the finger touches the screen.
This method is used to detect the number of quick taps in a touch event. This can be used to trigger certain actions or events, such as performing a special operation when the screen is tapped twice quickly.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
number | The number of times the finger touches the screen. |
code example
javascript
const touch = Input.GetTouch(0);
const count = touch.tapCount;