HandleUtility.WorldToGUIPointWithDepth

Cambiar al Manual
public static Vector3 WorldToGUIPointWithDepth (Vector3 world);

Parámetros

worldPoint in world space.

Valor de retorno

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.

Descripción

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

Uses the current camera to calculate the projection.

See Also: WorldToGUIPoint. GUIPointToWorldRay, RaySnap.