# 스타일

<mark style="color:기본값;background-color:yellow;">스타일은 텍스트의 일부를 빠르게 다른 것으로 대체합니다</mark>예를 들어 효과 콤보, 타자기 동작 및 이벤트를 생성하려면 반복되는 태그를 많이 입력해야 하는 것을 피할 수 있습니다.

{% hint style="danger" %}
TMPro를 사용하는 경우에는 이 기능을 위해 Text Animator 스타일을 사용하시고 TMPro 전용 스타일은 사용하지 마세요. 후자는 Text Animator 태그를 인식하지 못해 태그가 텍스트에 그대로 추가될 수 있습니다.
{% endhint %}

***

원하는 스타일시트 스크립터블 오브젝트를 간단히 열어(프로젝트 폴더에서 Create 메뉴 -> Text Animator -> StyleSheet로 생성할 수 있음) 태그를 추가/편집하세요.

{% hint style="info" %}
글로벌 스타일시트( [global-settings](https://docs.febucci.com/text-animator-unity/3.x-ko/customization/global-settings "mention") )와 로컬 스타일시트를 가질 수 있습니다.
{% endhint %}

![](https://content.gitbook.com/content/XuXUTa2X5PYuYL6yRvl1/blobs/bEgcnrQ9RzsRjy1jCb7m/textanimator%20settings%20stylesheet%20example.png)

위의 예에서 스타일 태그 “`<style1>`”를 텍스트에 작성하면 그것은 다음으로 대체됩니다: “`<wave><play=5><rainb><shake>`” - 그리고 그것을 “`</style1>`”로 닫으면 그것은 다음으로 대체됩니다: “`</wave></rainb></shake><?ended>`”.

{% hint style="info" %}
스타일 태그는 대소문자를 구분하지 않습니다 ("\<style1>"와 "\<Style1>"를 작성해도 동일한 결과가 나옵니다).
{% endhint %}
