Best Practices
Find all common best practices when using Text Animator for Unity.
Use Text Animator "SetText/ShowText" methods instead of TMPro
If you're setting text via code, please use Text Animator or its typewriter directly instead of TextMeshPro.
// Some code
TMP_Text tmpText;
Febucci.UI.TAnimCore textAnimator;
Febucci.UI.TypewriterCore typewriter;
// [...] do this
textAnimator.SetText(value); // to set the text instantly
//or
typewriter.ShowText(value); // to set it if you have a typewriter
API of reference: textAnimator.SetText, typewriter.ShowText
Set the entire text/dialogue only once
Please try to set text just once, and use the typewriter / visibility methods to control how it appears.
Use TextAnimator's "ScheduleMeshRefresh" instead of TMPro.ForceMeshUpdate()
If you call "tmpText.ForceMeshUpdate", TextAnimator might lose some references and not display letters correctly. If something changed in the text that makes you want to call that function, please try calling TextAnimator "ScheduleMeshRefresh" instead! [Scripting API] It'll perform that method on the next frame, but keep all references intact.
If you're changing something in the text inspector but it's not getting updated, please let us know!
Last updated