HorizontalAlignment
How text is horizontally aligned within its layout area.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.TextCore
- Assembly: UnityEngine.TextCoreTextEngineModule
public enum HorizontalAlignment
Fields
Value | Description |
|---|---|
| Center | Text is centered within the layout area. |
| Flush | Spaces are stretched so every line, including the last, fills the layout area. |
| Justified | Spaces are stretched so lines fill the layout area; the last line stays left-aligned. |
| Left | Text is aligned to the left of the layout area. |
| Right | Text is aligned to the right of the layout area. |