부분 텍스트 마크업

*이 콘텐츠는 AI(베타)를 사용해 번역되었으며, 오류가 있을 수 있습니다. 이 페이지를 영어로 보려면 여기를 클릭하세요.

UI 풍부한 텍스트 rich text 은 간단한 마크업 태그를 사용하여 문자열의 섹션을 밑줄, 이탈리아어, 하이픈, 채우기 색, 스트로크 변형 및 더 많은 것을 스타일로 지정할 수 있습니다. 스타일 태그를 적용할 수 있습니다

리치 텍스트 활성화

You must enable rich text on a per-object basis through its RichText 속성 in the 속성 창, or by setting the property to true in a LocalScript .


local title = Instance.new("TextLabel")
title.RichText = true
title.Text = "Use a <b>bold title</b>"

지원 태그

풍부한 텍스트 태그는 XML/HTML 태그와 유사하며 서식이 지정된 텍스트 주위에 열 및 닫기 태그를 모두 포함해야 합니다.

<b>Formatted text</b>

태그를 마침표 순서대로 닫으면 서로 중첩할 수도 있습니다.

<b><i><u>Formatted text</u></i></b>

<font color=""> </font>

I want the <font color="#FF7800">orange</font> candy.``I want the <font color="rgb(255,125,0)">orange</font> candy.

크기

<font size=""> </font>

<font size="40">This is big.</font> <font size="20">This is small.</font>

폰트 페이스

<font face=""> </font>

<font face="Michroma">This is Michroma face.</font>

서체 가족

<font family=""> </font>

<font family="rbxasset://fonts/families/Michroma.json">This is Michroma face.</font>

서체 무게

<font weight=""> </font>

This is normal. <font weight="heavy">This is heavy.</font>``This is normal. <font weight="900">This is heavy.</font>

<stroke> </stroke>

You won <stroke color="#00A2FF" joins="miter" thickness="2" transparency="0.25">25 gems</stroke>.

투명도

<font transparency=""> </font>

Text at <font transparency="0.5">50% transparency</font>.

대담한

<b> </b>

Text in <b>bold</b>.

이탈리아

<i> </i>

Text <i>italicized</i>.

밑줄

<u> </u>

Text <u>underlined</u>.

스트라이크스루

Text with strikethrough

줄 바꿈

<br />

New line occurs after this sentence.<br />Next sentence...

대문자

<uppercase> </uppercase>``<uc> </uc>

<uppercase>Uppercase</uppercase> makes words read loudly!``<uc>Uppercase</uc> makes words read loudly!

소형 모자

<smallcaps> </smallcaps>``<sc> </sc>

My name is <smallcaps>Diva Dragonslayer</smallcaps>.``My name is <sc>Diva Dragonslayer</sc>.

마크

<mark> </mark>

Text <mark color="#009966" transparency="0">highlighted</mark>.

코멘트

<!-- -->

After this is a comment...<!--This does not appear in the final text--> and now more text...

탈출 형태

특정 캐릭터를 렌더링하려면 < 또는 > 및 풍부한 텍스트 태그의 일부로 고려되지 않도록 하려면 에scape form 에 작성할 수 있습니다.

Personagem逃脱ExemploResultado
<) &lt;10 &lt; 100 ]]10 <100
>: &gt;&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;1&lt;100 &gt; 10100 > 10
"título de exemplo" &quot;Meet &quot;Diva Dragonslayer&quot;Conheça "Diva Dragonslayer"
&apos;Diva&apos;s pet is a falcon!Animal de estimação da Diva é um falcão!
&amp;Render another escape form <b>&amp;lt;</b> by escaping an ampersandRender outro formulário de fuga &lt; ao escapar de um ampersand