# GetLocalLeft()

> Returns the x coordinate of the left edge of this RectTransform in its parent's coordinate space.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public float GetLocalLeft()
```

### Returns

| Type                                                          | Description                                                                                                                                                                                                  |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | The x coordinate of the left edge, measured from the lower-left corner of the parent RectTransform's rect. If there is no parent RectTransform, returns the value relative to the element's own rect origin. |

### Remarks

All four edge-position methods — [RectTransform.GetLocalBottom](/engine/6000.7/script-reference/unityengine/recttransform/getlocalbottom.md), [RectTransform.GetLocalTop](/engine/6000.7/script-reference/unityengine/recttransform/getlocaltop.md), [RectTransform.GetLocalLeft](/engine/6000.7/script-reference/unityengine/recttransform/getlocalleft.md), and [RectTransform.GetLocalRight](/engine/6000.7/script-reference/unityengine/recttransform/getlocalright.md) — share the same coordinate system, whose origin is at the lower-left corner of the parent rect. Use [RectTransform.SetLocalLeft](/engine/6000.7/script-reference/unityengine/recttransform/setlocalleft.md) to move the left edge to a specific position without changing the element's size.

Additional Resources: [RectTransform.GetLocalBottom](/engine/6000.7/script-reference/unityengine/recttransform/getlocalbottom.md), [RectTransform.GetLocalRight](/engine/6000.7/script-reference/unityengine/recttransform/getlocalright.md), [RectTransform.SetLocalLeft](/engine/6000.7/script-reference/unityengine/recttransform/setlocalleft.md).
