---
title: whitespaceCollapse
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/textcore/generation/textgenerationsettings/whitespacecollapse
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/textcore/generation/textgenerationsettings/whitespacecollapse.md
last_updated: 2026-10-07
generated_at: 2026-11-12T14:20:59.848Z
locale: en-us
---

# whitespaceCollapse

> How sequences of white space are handled.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine.TextCore.Generation](/engine/7000.0/script-reference/unityengine/textcore/generation.md)
* **Assembly:** UnityEngine.TextCoreTextEngineModule

```csharp
public WhitespaceCollapse whitespaceCollapse
```
