TextAnchor
Where the anchor of the text is placed.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Enum
- Namespace: UnityEngine
- Assembly: UnityEngine.TextRenderingModule
public enum TextAnchor
Remarks
This is used by anchor property.
Fields
Value | Description |
|---|---|
| LowerCenter | Text is anchored in lower side, centered horizontally. |
| LowerLeft | Text is anchored in lower left corner. |
| LowerRight | Text is anchored in lower right corner. |
| MiddleCenter | Text is centered both horizontally and vertically. |
| MiddleLeft | Text is anchored in left side, centered vertically. |
| MiddleRight | Text is anchored in right side, centered vertically. |
| UpperCenter | Text is anchored in upper side, centered horizontally. |
| UpperLeft | Text is anchored in upper left corner. |
| UpperRight | Text is anchored in upper right corner. |