# height

> The height of the rectangle, measured from the Y position.

## Definition

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

```csharp
public float height { get; set; }
```

### Remarks

Setting this value will also change [Rect.yMax](/engine/6000.0/script-reference/unityengine/rect/ymax.md).

### Examples

```csharp
using UnityEngine;

public class Example : MonoBehaviour
{
    void Start()
    {
        Rect rect = new Rect(0, 0, 10, 10);
        print(rect.height);
        rect.height = 20;
    }
}
```
