# GetLeftAlignedFieldRect(Rect)

> Utility method for GUI layouting ShaderGUI.

## Definition

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

```csharp
public static Rect GetLeftAlignedFieldRect(Rect r)
```

### Parameters

**** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)): Field Rect.

### Returns

| Type                                                        | Description                   |
| ----------------------------------------------------------- | ----------------------------- |
| [Rect](/engine/6000.7/script-reference/unityengine/rect.md) | A sub rect of the input Rect. |
