ScreenToViewportPoint

Method

Transforms position from screen space into viewport space. Unity docs

Definition

Vector3 ScreenToViewportPoint(Vector3 pos)
Vector3 ScreenToViewportPoint(Vector3 pos)

Returns Vector3

Parameters

ParameterDescription
Vector3 pos