# Unity 비주얼 스크립팅

Unity 2021부터 패키지 매니저에서 Unity의 Visual Scripting을 설치할 수 있습니다.

{% hint style="info" %}
패키지 테스트된 Unity Visual Scripting 버전: 1.8.0
{% endhint %}

Text Animator를 Unity Visual Scripting과 함께 사용하려면 프로젝트 설정 -> Visual Scripting -> Nodes로 이동하여 TextAnimator의 런타임 어셈블리를 다음과 같이 추가해야 합니다:

<figure><img src="/files/31c122e63e8fc01faf2c871cea60d7124584754f" alt=""><figcaption></figcaption></figure>

또한 통합의 어셈블리(예: "Febucci.TextAnimator.TMP.Runtime")를 추가해야 합니다. 그런 다음 "Regenerate Nodes"를 클릭하세요.\
이제 Typewriter의 "ShowText" 및 "Start Typewriter"와 같은 모든 TextAnimator 메서드를 비주얼 스크립팅 그래프에서 사용할 수 있습니다.\
TextAnimator 스크립팅 API는 여기에서 찾을 수 있거나 비주얼 스크립팅 그래프에서 새 노드를 생성하면 됩니다:

<figure><img src="/files/79ed641686a8ad1e7dda1f22875df401bcc9b2da" alt=""><figcaption></figcaption></figure>

TextAnimator 이벤트(예: 문자가 표시될 때 오디오 재생)에 구독하려면 Custom Event를 생성해야 합니다.\
이를 위해 TextAnimator 폴더에서 찾을 수 있는 "Visual Scripting - Integration" 패키지를 가져오거나, 다음과 같이 Text Animator와 Unity Visual Scripting 사이에서 "브리지" 역할을 하는 C# 클래스를 직접 생성할 수 있습니다:  P.S. 앞서 Text Animator에 대해 했던 것처럼 해당 어셈블리를 비주얼 스크립팅 설정의 "Nodes" 섹션에 포함시키고(그런 다음 "regenerate nodes"를 누르세요). 이제 그래프에서 이러한 이벤트의 트리거를 다음과 같이 사용할 수 있습니다:&#x20;

<figure><img src="/files/2f94d0ac878ad2c2efa6a7df4379c4aac9b4daf2" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/33a3bd7e6ec2573db9d6c6782e764823a771a7b3" 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-ko/undefined-2/undefined/unity-1.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.
