format
typescript
Touch.deltaPositionclass: Touch
description
(Read Only) The position increment since the last pixel coordinate change.
The position increment represents the change in position of the touch point on the screen relative to the previous frame, and is typically used to track the movement of the touch point.
parameter
| param_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector2 | The position increment. |
code example
javascript
const touch = Input.GetTouch(0);
const count = touch.deltaPosition;