---
title: horizontalAlignment
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/horizontalalignment
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityengine/textcore/generation/textgenerationsettings/horizontalalignment.md
last_updated: 2026-10-07
generated_at: 2026-11-11T09:59:10.024Z
locale: en-us
---

# horizontalAlignment

> Horizontal alignment of the text within the extents.

## Definition

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

```csharp
public HorizontalAlignment horizontalAlignment
```
