Skip to content

format

typescript
Touch.fingerID

class: Touch

description

(Read Only) The unique identifier of the finger touch.

This property is mainly used to identify and differentiate different touch events in multi-touch scenarios. On a multi-touch screen, each touch event is associated with a unique fingerId, which allows tracking of the starting point of the touch, the movement trajectory, etc.

parameter

param_nametypedescription

reture

typedescription
numberThe unique identifier of the touch

code example

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