# WhiteSpace

> Controls how white space and line breaks within an element's text are handled.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public enum WhiteSpace
```

## Fields

| Value                                                                                   | Description                                                                                                                  |
| --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| [Normal](/engine/6000.0/script-reference/unityengine/uielements/whitespace/normal.md)   | Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary. This is the default behavior. |
| [NoWrap](/engine/6000.0/script-reference/unityengine/uielements/whitespace/nowrap.md)   | Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line.                       |
| [Pre](/engine/6000.0/script-reference/unityengine/uielements/whitespace/pre.md)         | Whitespace is preserved. Text will only wrap on line breaks.                                                                 |
| [PreWrap](/engine/6000.0/script-reference/unityengine/uielements/whitespace/prewrap.md) | Whitespace is preserved. Text will wrap when necessary.                                                                      |
