# WorldToGUIPoint(Vector3)

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

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static Vector2 WorldToGUIPoint(Vector3 world)
```

### Parameters

**** (\[Vector3]\(/engine/6000.0/script-reference/unityengine/vector3)): Point in world space.

### Returns

| Type                                                              | Description                                                                          |
| ----------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [Vector2](/engine/6000.0/script-reference/unityengine/vector2.md) | A Vector2 where the x and y values are the 2D GUI position of the world space point. |

### Remarks

Uses the current camera to calculate the projection. Use this to place Editor GUI elements based on world positions.

If the world point is outside the camera's frustum, `WorldToGUIPoint` returns x/y coordinates that might be outside the SceneView’s pixel rect.

`WorldToGUIPoint` discards depth information. To also get the view-space depth of the point, use [HandleUtility.WorldToGUIPointWithDepth](/engine/6000.0/script-reference/unityeditor/handleutility/worldtoguipointwithdepth.md), which returns the depth in the z component of a Vector3.

Additional Resources: [HandleUtility.WorldToGUIPointWithDepth](/engine/6000.0/script-reference/unityeditor/handleutility/worldtoguipointwithdepth.md), [HandleUtility.GUIPointToWorldRay](/engine/6000.0/script-reference/unityeditor/handleutility/guipointtoworldray.md), [HandleUtility.RaySnap](/engine/6000.0/script-reference/unityeditor/handleutility/raysnap.md).
