# Yarn Spinner

Yarn Spinner is a powerful tool that lets you write dialouges like this:

```
-> What's going on? <<once>>
    Guard: The kingdom is under seige!
-> Where can I park my horse? <<once if $has_horse>>
    Guard: Over by the tavern.
-> Lovely day today!
    Guard: Uh huh.
-> I should go.
    Guard: Please do.
```

And it also has a visual debugger, works directly in Unity and many other great features.&#x20;

{% embed url="<https://www.yarnspinner.dev/>" %}

***

### Integration Steps

To integrate Yarn Spinner 3, you need to replace Text Animator's Typewriter Component with their one, made specifically for this integration.

{% hint style="success" %}
You will be able to use all Text Animator features (including the typewriter wait times etc.) while ***also*** having arbitrary waits and other specific features of Yarn Spinner.
{% endhint %}

You can read more here:

{% embed url="<https://docs.yarnspinner.dev/3.1/yarn-spinner-for-unity/unity-add-ons/text-animator>" %}

{% hint style="info" %}
Please let us know if it's working how you expected and/or if you'd like any new feature or improvement!! Cheers!
{% endhint %}

***

{% hint style="warning" %}
If you are on older version of Yarn Spinner, please refer to their documentation to how the integration works! (Yarn Spinner supports both TAnim 2.X and 3.X, yay!)
{% endhint %}


---

# 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/integrations/integrated-plugins-and-dialogues-systems/yarn-spinner.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.
