# Yarn Spinner

[Yarn Spinner(오픈 소스): 웹사이트](https://yarnspinner.dev/).

### Yarn Spinner 2.X 및 Unity용 Text Animator

Yarn Spinner 2.X는 두 가지 주요 방식으로 통합할 수 있습니다.

* 첫 번째 방법은 TextAnimator의 타자기 기능을 사용하는 것이며(따라서 Yarn Spinner의 것은 비활성화), 타자기 일시정지, 플레이어 입력 대기 등 모든 Text Animator 기능을 사용하려는 경우 권장됩니다.
* * "Line View" 스크립트에서 "Use Typewriter"와 "Use Fade Effect"를 비활성화하십시오.
  * 대화 텍스트에 TextAnimator\_TMP 및 TypewriterByCharacter 구성요소를 추가하십시오. 아래에 표시된 것처럼 [통합 플러그인 및 대화 시스템](/text-animator-unity/2.x-ko/undefined-2/undefined.md).
  * *추신: 캔버스 설정 방식에 따라 텍스트가 한 프레임 동안 깜빡일 수 있습니다. 그런 경우 새 대화 줄을 표시하기 전에 그리고 캔버스가 사라질 때 "tmproText.ClearMesh(true)"를 호출해야 합니다. 예를 들어 "Continue" 버튼이 있는 경우 다음과 같이 하십시오:*
  * ![tmpro clearmesh event](/files/6a129f235395346ec9bb854fd5ddbe1d05579dba)
* 두 번째 방법은 Yarn Spinner의 타자기 기능을 계속 사용하는 것이지만(그 경우 Text Animator의 타자기 기능은 사용할 수 없습니다).
* * "Line View" 스크립트에서 "Use Fade Effect" 및 "Use Typewriter Effect"를 true로 설정하십시오.
  * 대화 텍스트에 TextAnimator\_TMP 구성요소를 추가하고 "Typewriter Starts Automatically"를 반드시 비활성화하십시오.

### Yarn Spinner 1.X와 Text Animator Unity

* Unity의 내장 Text 대신 TextMeshPro를 사용하십시오
* "DialogueUI" 구성요소에서 "text speed"를 0으로 설정하십시오.
* "DialogueUI" 구성요소에서 TextMeshPro의 텍스트로 "OnLineUpdate" 이벤트를 설정하십시오.
* ![textanimator integration yarnspinner lineupdate](/files/0569384d2a8c51697e459b1a733111d038ffb6c4)
* 대화 텍스트에 TextAnimator\_TMP 및 TypewriterByCharacter 구성요소를 추가하십시오. 아래에 표시된 것처럼 [통합 플러그인 및 대화 시스템](/text-animator-unity/2.x-ko/undefined-2/undefined.md).


---

# 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/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.
