F.A.Q
Questions
Does Animatext support other languages?
Does Animatext support other fonts?
How to align the texts during effect execution?
What is the difference between multiple single-preset effects and one multi-preset effect?
What should I do if the effect added via script is not executed?
Are the units of words and lines the same as those in the text components(UGUI, TextMeshPro)?
Could I add extra word breaks and line breaks?
Animatext perfectly supports other languages in characrer, line, group and range modes.
In word mode, words are divided by word breaks. If there are no extra characters between words in your language, you can not get automatic word division. But you can use word tags to define words.
Yes. But fonts are handled by text components (UGUI, TextMeshPro) instead of Animatext.
In the text component, texts are aligned at the bottom by default. You can adjust the anchor type to bottom, and then adjust the anchor offset based on font size.
All presets in a multi-preset effect share the same effect time. Each effect has an independent effect time in multiple single-preset effects.
Example: <AT1>Ani</AT1><AT2>mat</AT2><AT3>ext</AT3>.
In a multiple-preset effect, "Ani" is executed first, then "mat" and finally "ext". In multiple effects, "Ani", "mat" and "ext" are executed at the same time.
New effects added to the Animatext component will not be executed automatically. You need to use "BaseAnimatext.Refresh" or "BaseAnimatext.SetText". Linkļ¼Creating Effects (C#) .
No. Animatext uses an independent text analysis system.
Yes. You can add characters to "TextInfo.wordBreaks" and "TextInfo.lineBreaks".
using Animatext;
using UnityEngine;
public class ExampleF01 : MonoBehaviour
{
//Add the break characters before parsing text.
private void Awake()
{
TextInfo.wordBreaks.Add(',');
TextInfo.lineBreaks.Add('.');
}
}