Unity Visual Scripting
Last updated
Last updated
You can install Unity’s Visual Scripting from the package manager, from Unity 2021 and beyond.
Package tested at Unity Visual Scripting version: 1.8.0
To use Text Animator with Unity Visual Scripting, be sure to go to project settings -> visual scripting -> nodes, and add TextAnimator's Runtime assembly there, like this:
You should also add any integration's assembly (e.g. "Febucci.TextAnimator.TMP.Runtime"). Then, click "Regenerate Nodes". You will now be able to use all TextAnimator methods in your visual scripting graphs, like the Typewriter's "ShowText" and "Start Typewriter". You can find the TextAnimator Scripting Api here, or simply create a new node in the Visual Scripting Graph:
In order to subscribe to TextAnimator events (e.g. playing audio when a character is shown), you need to create a Custom Event. To do so, you can either import the "Visual Scripting - Integration" package that you can find in the TextAnimator folder, or you manually create a C# class that acts like a "bridge" between Text Animator and Unity Visual Scripting like this: P.S. be sure to include its assembly in the "Nodes" section of the visual scripting settings (and then hit "regenerate nodes"), like you did before with Text Animator. You will now be able to use trigger from these events in your graph like this: