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

HandleUtility.WorldToGUIPoint

Declaration

public static Vector2 WorldToGUIPoint(Vector3 world);

Parameters

world Point in world space.

Description

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

Uses the current camera to calculate the projection.

Additional resources: GUIPointToWorldRay, RaySnap.