Documentation

Unity Engine

Unity Engine

WorldToScreenPoint(Camera, Vector3)

Transforms a position in world space into a screen space point.
Read time 1 minuteLast updated 13 hours ago

Definition

public static Vector2 WorldToScreenPoint(Camera cam, Vector3 worldPoint)

Parameters

The camera associated with the screen space position. (Optional)

worldPoint

Point in world space.

Returns

Type

Description

Vector2Returns the screen point.