WorldToScreenPoint

Method

WorldToScreenPoint has 2 overloads.

WorldToScreenPoint(Vector3)

Transforms position from world space into screen space. Unity docs

Definition

Vector3 WorldToScreenPoint(Vector3 pos)
Vector3 WorldToScreenPoint(Vector3 pos)

Returns Vector3

Parameters

ParameterDescription
Vector3 pos

WorldToScreenPoint(Vector3, MonoOrStereoscopicEye)

Transforms position from world space into screen space. Unity docs

Definition

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

Returns Vector3

Parameters

ParameterDescription
Vector3 pos
MonoOrStereoscopicEye eye