ScreenPointToRay

Method

ScreenPointToRay has 2 overloads.

ScreenPointToRay(Vector3)

Returns a ray going from camera through a screen point. Unity docs

Definition

Ray ScreenPointToRay(Vector3 pos)
Ray ScreenPointToRay(Vector3 pos)

Returns Ray

Parameters

ParameterDescription
Vector3 pos

ScreenPointToRay(Vector3, MonoOrStereoscopicEye)

Returns a ray going from camera through a screen point. Unity docs

Definition

Ray ScreenPointToRay(Vector3 pos, Camera.MonoOrStereoscopicEye eye)
Ray ScreenPointToRay(Vector3 pos, Camera.MonoOrStereoscopicEye eye)

Returns Ray

Parameters

ParameterDescription
Vector3 pos
MonoOrStereoscopicEye eye