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.


Did you find this page useful? Please give it a rating: