Skip to content

format

typescript
Touch.deltaPosition

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

reture

typedescription
Vector2The position increment.

code example

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