TextDirection
Controls the base text rendering direction for TextLabel, TextButton, and TextBox instances.
Items 3
| History | Name | Value | Description | |
|---|---|---|---|---|
| 581 | Auto | 0 | Automatically determines text direction from the first strong directional character using the Unicode Bidirectional Algorithm. | |
| 581 | LeftToRight | 1 | Forces the paragraph base direction to left-to-right regardless of the text content. | |
| 581 | RightToLeft | 2 | Forces the paragraph base direction to right-to-left regardless of the text content. |
Description
Controls the base paragraph direction used when laying out text. Used by TextLabel.TextDirection, TextButton.TextDirection, and TextBox.TextDirection, which default to TextDirection.Auto.
TextDirection.Auto lets the Unicode Bidirectional Algorithm determine the paragraph's base direction from the first strong directional character. TextDirection.LeftToRight or TextDirection.RightToLeft pins the base direction regardless of content, which is useful for mixed-script strings where automatic detection would choose the wrong base.
History 4
- 581 Add RightToLeft
- 581 Add LeftToRight
- 581 Add Auto
- 581 Add TextDirection