# CameraTransformWorldToPanel(IPanel, Vector3, Camera)

> Transforms a world absolute position to its equivalent local coordinate on given panel, using provided camera for internal WorldToScreen transformation.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.3/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public static Vector2 CameraTransformWorldToPanel(IPanel panel, Vector3 worldPosition, Camera camera)
```

### Parameters

**** (\[IPanel]\(/engine/6000.3/script-reference/unityengine/uielements/ipanel)): The local coordinates reference panel.**** (\[Vector3]\(/engine/6000.3/script-reference/unityengine/vector3)): The world position to transform.**** (\[Camera]\(/engine/6000.3/script-reference/unityengine/camera)): The Camera used for internal WorldToScreen transformation.

### Returns

| Type                                                              | Description                                                                      |
| ----------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| [Vector2](/engine/6000.3/script-reference/unityengine/vector2.md) | A position in panel coordinates that corresponds to the provided world position. |
