Yarn Spinner
Last updated
Last updated
Yarn Spinner (open source): website.
You can integrate Yarn Spinner 2.X in two main ways.
The first one is to use TextAnimator's typewriter (so, disabling Yarn Spinner's one), which is preferable in case you want to use all Text Animator's features like pausing the typewriter, waiting for player input and more.
In the "Line View" script, disable "Use Typewriter" and "Use Fade Effect".
Add the components TextAnimator_TMP and TypewriterByCharacter to your dialogue text, as shown in the Integrated Plugins & Dialogues Systems.
P.S. Based on how you setup your canvas, the text might flicker for one frame. If that happens, be sure to call "tmproText.ClearMesh(true)" before showing a new dialogue line, and once the canvas disappears. For example, as following if you have a "Continue" button:
The second way is to keep using Yarn Spinner's typewriter (but you wouldn't be able to use Text Animator's typewriting features).
In the "Line View" script, set "Use Fade Effect" and "Use Typewriter Effect" to true.
Add a TextAnimator_TMP component to your dialogue text, and be sure to disable "Typewriter Starts Automatically".
Use TextMeshPro instead of Unity's built-in Text
"DialogueUI" component, set "text speed" to 0.
"DialogueUI" component, set the "OnLineUpdate" event with TextMeshPro's text.
Add the components TextAnimator_TMP and TypewriterByCharacter to your dialogue text, as shown in the Integrated Plugins & Dialogues Systems.