format
typescript
Touch.rawPositionclass: 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_name | type | description |
|---|
reture
| type | description |
|---|---|
Vector2 | The raw screen coordinates of the touch position |
code example
javascript
const touch = Input.GetTouch(0);
const position = touch.rawPosition;