ScreenToWorldPoint

Method

ScreenToWorldPoint has 2 overloads.

ScreenToWorldPoint(Vector3)

Transforms a point from screen space into world space, where world space is defined as the coordinate system at the very top of your game's hierarchy. Unity docs

Definition

Vector3 ScreenToWorldPoint(Vector3 pos)
Vector3 ScreenToWorldPoint(Vector3 pos)

Returns Vector3

Parameters

ParameterDescription
Vector3 pos

ScreenToWorldPoint(Vector3, MonoOrStereoscopicEye)

Transforms a point from screen space into world space, where world space is defined as the coordinate system at the very top of your game's hierarchy. Unity docs

Definition

Vector3 ScreenToWorldPoint(Vector3 pos, Camera.MonoOrStereoscopicEye eye)
Vector3 ScreenToWorldPoint(Vector3 pos, Camera.MonoOrStereoscopicEye eye)

Returns Vector3

Parameters

ParameterDescription
Vector3 pos
MonoOrStereoscopicEye eye