Advanced Text Generator (ATG) is not enabled by default, and you need to enable it in your project settings.
With ATG, you can use a wide array of languages and scripts, such as right-to-left (RTL) languages like Arabic and Hebrew.
You can use ATG in UI Builder, USS, and C# scripts. It’s best practice to set it in the root element of your UI hierarchy, so that it cascades to all child elements. If you want to use standard text rendering for specific elements, you can override the text generator type for those elements individually.
To use Advanced Text Generator in UI Builder, do the following:
To use Advanced Text Generator in USS, set -unity-text-generator to advanced. The following USS example sets it for the root element:
:root {
-unity-text-generator: advanced;
}
To use Advanced Text Generator in C# scripts, set TextGeneratorType to Advanced. For example:
textElement.style.unityTextGenerator = new StyleEnum<TextGeneratorType>(TextGeneratorType.Advanced);
ATG has the following limitations: