Skip to content

format

typescript
Touch.rawPosition

class: Touch

description

(Read Only) The raw screen coordinates of the touch position.

This method is used to retrieve the raw position of a touch event, typically used when very precise position information is needed. It is suitable for fine interactions, drawing, precise object dragging, and other scenarios that require handling touch events with high accuracy.

parameter

param_nametypedescription

reture

typedescription
Vector2The raw screen coordinates of the touch position

code example

javascript
const touch = Input.GetTouch(0);
const position = touch.rawPosition;