# yMax

> The maximum Y coordinate of the rectangle.

## Definition

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

```csharp
public float yMax { readonly get; set; }
```

### Remarks

Setting this value will change [Rect.height](/engine/6000.7/script-reference/unityengine/rect/height.md) to preserve [Rect.yMin](/engine/6000.7/script-reference/unityengine/rect/ymin.md).
