# singleLineHeight

> Get the height used for a single Editor control such as a one-line EditorGUI.TextField or EditorGUI.Popup.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static float singleLineHeight { get; }
```

### Remarks

When creating your own multi-line controls, such as controls for custom classes with multiple fields, you can use [EditorGUILayout.GetControlRect](/engine/6000.0/script-reference/unityeditor/editorguilayout/getcontrolrect.md) and pass in a height value that is a multiple of [EditorGUIUtility.singleLineHeight](/engine/6000.0/script-reference/unityeditor/editorguiutility/singlelineheight.md). This is advisable over hardcoding specific pixel values. Additional Resources: [EditorGUILayout.GetControlRect](/engine/6000.0/script-reference/unityeditor/editorguilayout/getcontrolrect.md).
