Version: 2019.1

HandleUtility.WorldToGUIPointWithDepth

Switch to Manual
public static Vector3 WorldToGUIPointWithDepth (Vector3 world);

Parameters

worldPoint in world space.

Returns

Vector3 A Vector3 where the x and y values relate to the 2D GUI position. The z value is the distance in world units from the camera.

Description

Convert a world space point to a 2D GUI position.

Uses the current camera to calculate the projection.

See Also: WorldToGUIPoint. GUIPointToWorldRay, RaySnap.