다음 표에는 지원되는 모든 리치 텍스트 태그가 나열되어 있습니다.
태그 | 설명 | 예제 |
---|---|---|
<a> |
하이퍼링크를 정의합니다.href 속성을 사용하여 하이퍼링크 URL을 정의합니다. |
<a href="https://www.unity.com">Visit Unity!</a> |
<align> |
텍스트의 수직 얼라인먼트를 변경합니다.지원되는 값은 다음과 같습니다.
같은 줄에 여러 개의 얼라인먼트 태그를 넣으면 마지막 태그가 다른 태그보다 우선합니다. |
<align="left">Left-aligned</align> |
<allcaps> |
텍스트를 대문자로 전환합니다. | <allcaps>Alice and Bob watched TV.</allcaps> |
<alpha> |
텍스트 불투명도를 변경합니다.16진수 값과 함께 작동합니다. | <alpha=#FF>FF <alpha=#CC>CC <alpha=#AA>AA <alpha=#88>88 <alpha=#66>66 <alpha=#44>44 <alpha=#22>22 <alpha=#00>00 |
<b> |
텍스트를 굵게 만듭니다. | The fox jumps over the <b>lazy dog</b> |
<br/> |
텍스트에 줄바꿈을 강제 적용합니다. | Break the line here <br/> New line starts |
<color> |
텍스트 컬러 또는 컬러 및 불투명도를 변경합니다.컬러 이름과 16진수 값을 지원합니다.동일한 텍스트에 연속적으로 태그를 적용하는 경우, 다른 태그를 추가하거나 닫는 태그를 사용하여 현재 컬러의 범위를 끝낼 때까지 마지막 태그가 다른 태그보다 우선합니다. | <color="red">Red <color=#005500>Dark Green <#0000FF>Blue <color=#FF000088>Semitransparent Red |
<cspace> |
문자 간 간격을 원본 폰트 에셋에 따라 절대 또는 상대로 변경합니다.픽셀 또는 폰트 단위를 사용합니다.양수 조정은 문자를 서로 밀어내고 음수 조정은 서로 끌어당깁니다. | <cspace=1em>Spacing</cspace> is just as important as <cspace=-0.5em>timing. |
<font> |
텍스트의 폰트를 변경합니다. | Would you like <font="Impact SDF">a different font?</font> |
<font-weight> |
텍스트의 폰트 가중치를 폰트 에셋에 정의된 가중치 중 하나로 변경합니다.폰트 가중치를 정의하지 않은 경우에도 일반체는 400 , 굵은체에는 700 을 사용할 수 있습니다. |
<font-weight="100">Thin</font-weight> |
<gradient>
|
텍스트에 컬러 그레디언트를 적용합니다. | <gradient="Light to Dark Green - Vertical">gradient |
<i> |
텍스트를 기울임꼴로 만듭니다. | The <i>quick brown fox</i> |
<indent> |
태그와 다음 수동 줄바꿈 사이의 모든 텍스트를 인덴트합니다.이 태그를 사용하여 단어 줄바꿈과 함께 작동하는 불릿 포인트 등의 텍스트 패턴을 만들 수 있습니다.픽셀, 폰트 단위 또는 백분율 단위로 인덴트를 지정합니다. | <indent=15%>It is useful for things like bullet points.</indent> |
<line-height> |
폰트 에셋에 지정된 기본 줄 높이를 기준으로 줄 높이를 수정합니다.픽셀, 폰트 단위 또는 백분율로 줄 높이를 지정합니다. | <line-height=50%>Line height at 50% |
<line-indent> |
모든 수동 줄바꿈 뒤에 첫 줄을 인덴트합니다.단어 줄바꿈으로 생성된 새 줄은 인덴트되지 않습니다. | <line-indent=15%>This line is indented.<br/>This line is also indented. |
<lowercase> |
텍스트를 소문자로 전환합니다. | <lowercase>Alice and Bob watched TV.</lowercase> |
<margin> |
텍스트 가로 마진을 설정합니다.왼쪽 또는 오른쪽 마진만 조정하려는 경우 <margin-left> 또는 <margin-right> 태그를 사용할 수 있습니다.마진을 픽셀, 폰트 단위 및 백분율로 지정합니다.음수 값은 영향이 없습니다. |
<margin=5em> |
<mark> |
컬러 오버레이로 텍스트를 하이라이트합니다.오버레이는 반투명(알파가 1 미만)이어야 텍스트가 보이게 됩니다. | Text <mark=#ffff00aa>can be marked with</mark> an overlay. |
<mspace> |
폰트의 문자 간격을 오버라이드하여 모노스페이스 폰트로 전환합니다. | Any font can become <mspace=2.75em>monospace, if you really want it. |
<nobr> |
텍스트 세그먼트를 함께 유지합니다. | You don't want <nobr>I M P O R T A N T</nobr> things to be broken up. |
<noparse> |
리치 텍스트 태그의 구문 분석을 방지합니다. | Use <noparse><b></noparse> for <b>bold</b> text. |
<pos> |
현재 줄에서 수직 삽입 기호 포지션을 설정합니다.수직 포지션을 픽셀, 폰트 단위 또는 백분율로 지정합니다. | at <pos=75%>75% |
<rotate> |
각 문자를 중심으로 회전합니다.회전 정도를 도 단위로 지정합니다.양수 값은 문자를 시계 반대 방향으로 회전시킵니다.음수 값은 시계 방향으로 회전시킵니다. 회전은 문자 사이의 간격에 영향을 미치며 경우에 따라 문자가 겹칠 수 있습니다.문자의 간격을 필요한 대로 조정하려면 <cspace> 태그를 사용하십시오. |
Rotate text <rotate="45">counter-clockwise</rotate> |
<s> |
텍스트를 가로지르는 선을 렌더링합니다. | The <s>quick brown</s> fox |
<size> |
폰트 크기를 조절합니다.픽셀, 폰트 단위 또는 백분율로 새 크기를 지정합니다.픽셀 조정은 절대(예: 5px ) 또는 상대(예: +1 또는 -1 ) 조정이 가능합니다.상대적인 크기는 원래 폰트 크기를 기준으로 하므로 누적되지 않습니다. |
<size=100%>Echo <size=80%>Echo <size=60%>Echo <size=40%>Echo <size=20%>Echo |
<smallcaps> |
텍스트를 소문자로 전환합니다. | <smallcaps>Alice and Bob watched TV. |
<space> |
텍스트 자체와 나머지 텍스트 사이에 수평 오프셋을 추가합니다.픽셀 또는 폰트 단위로 오프셋을 지정합니다. | Give me some <space=5em> space |
<sprite>
|
스프라이트 에셋의 스프라이트를 텍스트에 추가합니다. | <sprite name="spriteName"> |
<strikethrough> |
기준선보다 약간 위에 선을 그려 텍스트를 지웁니다. | <strikethrough> Some text |
<style>
|
텍스트에 커스텀 스타일을 적용합니다. | <style="H1">Styles</style> |
<sub> |
텍스트를 아래 첨자로 변환합니다. | We have 1m<sup>3</sup> of H<sub>2</sub>O. |
<sup> |
텍스트를 위 첨자로 변환합니다. | We have 1m<sup>3</sup> of H<sub>2</sub>O. |
<u> |
텍스트에 밑줄을 긋습니다. | <u>The lazy dog</u> |
<uppercase> |
텍스트를 대문자로 전환합니다. | <uppercase>Alice and Bob watched TV.</uppercase> |
<voffset> |
기준선에 수직 오프셋을 지정합니다.픽셀 또는 폰트 단위로 오프셋을 지정합니다.오프셋은 항상 원래 기준선을 기준으로 합니다. | Up <voffset=1em>up <voffset=2em>UP</voffset> and <voffset=-0.5em>down</voffset> we go again. |
<width> |
텍스트 영역의 가로 크기를 변경합니다. | <width=60%>Those days are long gone</width> |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.