| Parameter | Description |
|---|---|
| world | Point in world space. |
Convert a world space point to a 2D GUI position..
Uses the current camera to calculate the projection. Returns GUI x/y and view-space z. Use this to place editor GUI elements based on world positions.
If the world point is outside the camera's frustrum, WorldToGUIPoint returns x/y coordinates that might be outside the SceneView’s pixel rect and a positive z value.
If the world point is behind the camera, it returns a Vector3 with a negative z component.
Additional resources: GUIPointToWorldRay, RaySnap.