You can tell TextAnimator to use the typewriter in two ways.
tmproText.text = textValue;” with
textAnimatorPlayer.ShowText(textValue); in your code (referencing a TextAnimatorPlayer component).
Enabling the “
Use Easy Integration” option in the TextAnimator component.
This will let the plugin automatically check for text changes in your TextMeshPro’s component.
As typewriter, you can use the built-in one or you can create your own. (Read here how to create a custom typewriter via C#)
The default typewriter component is called
You can hover the mouse above its fields in the Inspector to show the tooltips for each option/feature, but here’s a quick look in this page as well.
Use Type Writer: true if you want to show text dynamically, like a typewriter.
👍🏻 The typewriter timescale will match the relative TextAnimator component one.
Normal chars: not puntuaction
If true, only the last punctuation on a sequence waits for its category time.
Example: “I’m bored……” → all dots will have a “normal” wait, except for the very last dot of the sequence, which will have a “long” wait.
If false, each punctuation will wait regardless if it’s in a sequence or not.
Example: “I’m bored……” → each single dot will have a “long” wait
You can trigger events based on the typewriter activity (example: when it just ended showing text).
OnTextShowed: event called after the entire text has been shown (if you’ve set “Use Typewriter” to true, it will wait until all letters are shown).
The following events only work if the “Use typewriter” is set to true:
OnCharacterVisible(char x): event called each time a character became visible.
OnTypewriterStart: event called right before the typewriter starts showing its first letter. It doesn’t work if the typewriter is off, since it would coincide with the “OnTextShowed” event (in this case you can use that one instead)
Can Skip Typewriter: true if the player can skip the typewriter. To skip a typewriter, invoke the TextAnimatorPlayer’s method called “SkipTypewriter” from your scripts.
Hide Appearances On Skip: true if the letters will be skipped without any appearance effect.