Skip to content

format

typescript
Input.GetTouchByID(id)

class: Input

description

Get the status and position information of the specified ID on the touch screen.

parameter

param_nametypedescription
idnumberThe specified ID.

return

typedescription
TouchTouch information.

code example

typescript
OnUpdate(): void {

    if (Input.touchCount > 0) {
           
        let touch = Input.GetTouchByID(007);
        
    }
}