# TextAlignment

> How multiline text should be aligned.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.TextRenderingModule

```csharp
public enum TextAlignment
```

## Remarks

This is used by the [\_alignment](/engine/6000.7/script-reference/unityengine/textmesh/alignment.md) property.

## Fields

| Value                                                                         | Description                               |
| ----------------------------------------------------------------------------- | ----------------------------------------- |
| [Center](/engine/6000.7/script-reference/unityengine/textalignment/center.md) | Text lines are centered.                  |
| [Left](/engine/6000.7/script-reference/unityengine/textalignment/left.md)     | Text lines are aligned on the left side.  |
| [Right](/engine/6000.7/script-reference/unityengine/textalignment/right.md)   | Text lines are aligned on the right side. |
