Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


WorldToScreenPoint(Camera, Vector3)

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

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.UIModule
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.