Enum TextAlignment
Defines horizontal text alignment options for formatted text output within the Scylla
framework. Used by text rendering utilities such as TabularText and other
components that need to position text within a fixed-width region.
Namespace: Scylla.Core
Assembly: ScyllaCore.dll
Syntax
public enum TextAlignment
Remarks
This is a framework-level alignment enum, independent of Unity's UI text alignment
types (e.g., TMPro.TextAlignmentOptions). It is intended for use in console
output, debug displays, tabular formatting, and other non-UI text rendering contexts
where text must be aligned within a character-width column or bounding region.
Fields
| Name | Description |
|---|---|
| Center | Text is centered horizontally within the available space. Padding is distributed equally on both sides of the text content. When the remaining space is an odd number of characters, the extra character of padding is typically placed on the right side. |
| Justified | Text is justified to fill the entire available width by distributing extra space evenly between words. This produces aligned left and right edges, creating a block-like appearance. Single-word lines or the last line of a paragraph typically fall back to left alignment. |
| Left | Text is aligned to the left edge of the available space. Any remaining space appears as padding to the right of the text content. This is the most common alignment for left-to-right languages and is typically the default for labels, descriptions, and general prose. |
| Right | Text is aligned to the right edge of the available space. Any remaining space appears as padding to the left of the text content. Commonly used for numeric columns in tabular output where decimal alignment improves readability. |