# Unity Visual Scripting

You can install Unity’s Visual Scripting from the package manager, from Unity 2021 and beyond.

{% hint style="info" %}
Package tested at Unity Visual Scripting version: 1.8.0
{% endhint %}

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:

<figure><img src="/files/0BdI2eoaYQmAA4rJd7jK" alt=""><figcaption></figcaption></figure>

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:

<figure><img src="/files/4IHHayUKEM7H45u35kHO" alt=""><figcaption></figcaption></figure>

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:&#x20;

<figure><img src="/files/wbY0RMc6r1LOtKw8d8N2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Hvn0UcNDB3hfzDx9AmZu" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.febucci.com/text-animator-unity/2.x/integrations/integrated-plugins-and-dialogues-systems/unity-visual-scripting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
