Skip to content

format

typescript
Touch.tapCount

class: 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_nametypedescription

reture

typedescription
numberThe number of times the finger touches the screen.

code example

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