# 효과 추가 방법

다음과 같은 방법으로 텍스트에 효과를 추가할 수 있습니다:

### 텍스트의 특정 부분에 효과 설정하기 <a href="#set-effects-to-specific-parts-of-the-text" id="set-effects-to-specific-parts-of-the-text"></a>

다음을 사용하여 텍스트의 특정 부분에 효과를 추가할 수 있습니다 **리치 텍스트 태그.**

효과 태그는 다음과 같이 표시됩니다:

* **지속형**: `<tagID>` 를 열기 위해, `</tagID>` 를 닫기 위해
* **등장**: `{tagID}` 를 열기 위해, `{/tagID}` 를 닫기 위해
* **사라짐**: `{#tagID}` 를 열기 위해, `{/#tagID}` 를 닫기 위해\
  \&#xNAN;*(기본적으로는 앞에 `#` 가 붙은 등장 태그로, 사라짐이 역방향의 등장이란 점을 쉽게 기억하게 해줍니다)*.

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXuXUTa2X5PYuYL6yRvl1%2Fuploads%2FsNWP4FirbP7rwT5nMSgN%2FTag_Example_TAnim3.0.mp4?alt=media&token=cbc0e61e-038a-4b3e-9116-432cf6ca6a94>" %}

#### 리치 텍스트 서식에 대한 추가 참고 사항 <a href="#extra-notes-about-rich-text-formatting" id="extra-notes-about-rich-text-formatting"></a>

TextAnimator for Unity를 사용하면:

* 여러 효과를 함께 겹쳐 사용할 수 있습니다(예: “`<shake><size>`”).\
  (또한 다음도 확인해 보세요 [스타일](/text-animator-unity/3.x-ko/customization/styles.md))
* 다음을 닫을 수 있습니다 **모든** 현재 열린 효과를 하나의 ‘`/`’ 문자로 닫을 수 있습니다. 예를 들면:
  * ”`</>`”는 지속형 효과에 사용
  * ”`{/}`”는 등장 효과에 사용
  * ”`{/#}`”는 사라짐 효과에 사용.
* 텍스트의 끝에 있다면 태그를 닫을 필요가 없습니다. Text Animator는 태그를 여는 순간부터 효과 적용을 시작하기 때문입니다. (예: "`<shake>hello`"는 hello가 이미 애니메이션되는 결과를 만듭니다).

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FXuXUTa2X5PYuYL6yRvl1%2Fuploads%2FBg3rDgfMUSYXWod3YRWa%2FStackEffects.mp4?alt=media&token=cb667514-8b82-40d2-b4ff-6450e652aa52>" %}

{% hint style="info" %}
원시 텍스트를 표시하려면 `<noparse>` 태그를 사용하여 Text Animator가 다른 태그를 파싱하지 않도록 하세요.
{% endhint %}

***

### 전체 텍스트에 기본 효과 설정하기 <a href="#set-default-effects-to-the-entire-text" id="set-default-effects-to-the-entire-text"></a>

모든 글자에 기본적으로 어떤 효과를 적용할지 결정할 수 있습니다 **텍스트 안에 효과 태그를 직접 작성하지 않고도** 다음 덕분에 [애니메이터 설정](/text-animator-unity/3.x-ko/effects/how-to-add-effects/animator-settings.md).

{% tabs %}
{% tab title="UI 툴킷" %}
AnimatedLabel의 설정은 서로 다른 스크립터블 오브젝트를 통해 관리됩니다(이 경우 아래 이미지에서 강조 표시된 것). 더 자세한 내용은 여기에서 확인하세요: [하나를 만드는 방법](/text-animator-unity/3.x-ko/effects/how-to-add-effects/animator-settings.md).

{% hint style="success" %}
하나를 설정하지 않았다면, [전역 설정](/text-animator-unity/3.x-ko/customization/global-settings.md) 에 있는 것이 사용됩니다!
{% endhint %}

<figure><img src="/files/e240a2347aeea96fa5e7b967030ad2065f12d3f7" alt="" width="314"><figcaption></figcaption></figure>
{% endtab %}

{% tab title="텍스트 메시 프로" %}
Text Mesh Pro의 경우 설정은 컴포넌트에 연결된 "로컬" 설정이거나, 다른 Text Animator 인스턴스 간에 공유되는 "공유" 설정일 수 있습니다.

* 를 수정하려면 **로컬** 설정을 변경하려면 "TextAnimator - Text Mesh Pro" 컴포넌트 인스펙터로 가서 값을 조정하면 됩니다.
* 를 수정하려면 **공유** 설정을 하려면 해당 ScriptableObject 인스턴스를 할당하세요. [여기에서 더 읽기](/text-animator-unity/3.x-ko/effects/how-to-add-effects/animator-settings.md).
  {% endtab %}
  {% endtabs %}

설정 내부에서:&#x20;

1. “기본 태그” 섹션을 방문하세요
2. 편집하려는 효과의 범주를 펼치세요
3. 포함하고 싶은 효과 태그를 추가하세요. 예를 들면:

<figure><img src="/files/431d1661c849b6f82926346d0fade0847ea85140" alt="" width="362"><figcaption></figcaption></figure>

{% hint style="info" %}
&#x20;기본적으로 어떤 효과도 적용하고 싶지 않다면, 효과 개수를 0으로 설정하면 됩니다.
{% endhint %}

{% hint style="success" %}
"**기본 태그 모드**"를 "**상수**"로 변경할 수도 있습니다. 이 경우 모든 것 위에 항상 효과가 적용됩니다.
{% endhint %}

{% hint style="success" %}
"shake a=5"와 같이 각 배열 요소에 수정자(Modifier)를 추가할 수 있습니다. 자세한 내용은 여기에서 확인하세요: [수정자](/text-animator-unity/3.x-ko/effects/how-to-edit-effects/modifiers.md)
{% endhint %}

<details>

<summary>예시: 대체값</summary>

기본 효과("size")가 하나 있지만, 텍스트의 특정 부분에 "fade" 효과를 적용하고 싶다고 해봅시다.\
다음과 같이 작성하면 그 결과를 얻을 수 있습니다: "default default \`{fade}\` fade fade fade \`{/fade}\` default default"

![](/files/2542bac70f4c570f12c9f03958204c94b7c9c7f7)

보시다시피 "fade" 태그 바깥의 글자에는 기본 효과가 적용되고, "{fade}"와 "{/fade}" 사이의 부분에는 "fade"만 적용됩니다.

</details>


---

# 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/3.x-ko/effects/how-to-add-effects.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.
