format
typescript
Input.GetTouchByID(id)class: Input
description
Get the status and position information of the specified ID on the touch screen.
parameter
| param_name | type | description |
|---|---|---|
| id | number | The specified ID. |
return
| type | description |
|---|---|
Touch | Touch information. |
code example
typescript
OnUpdate(): void {
if (Input.touchCount > 0) {
let touch = Input.GetTouchByID(007);
}
}