# GetPropertyHeight

> Calculate height needed for the property.

## Definition

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

## GetPropertyHeight(MaterialProperty)

Calculate height needed for the property.

```csharp
public float GetPropertyHeight(MaterialProperty prop)
```

### Parameters

**** (\[MaterialProperty]\(/engine/6000.5/script-reference/unityeditor/materialproperty)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |

## GetPropertyHeight(MaterialProperty, string)

Calculate height needed for the property.

```csharp
public float GetPropertyHeight(MaterialProperty prop, string label)
```

### Parameters

**** (\[MaterialProperty]\(/engine/6000.5/script-reference/unityeditor/materialproperty)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [float](https://learn.microsoft.com/dotnet/api/system.single) |             |
