Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

RectTransformUtility.WorldToScreenPoint

Declaration

public static Vector2 WorldToScreenPoint(Camera cam, Vector3 worldPoint);

Parameters

cam The camera associated with the screen space position. (Optional)
worldPoint Point in world space.

Returns

Vector2 Returns the screen point.

Description

Transforms a position in world space into a screen space point.