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 = truetitle.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 | 逃脱 | Exemplo | Resultado |
---|---|---|---|
<) | < | 10 < 100 ]] | 10 <100 |
>: | ><1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1<1< | 100 > 10 | 100 > 10 |
"título de exemplo" | " | Meet "Diva Dragonslayer" | Conheça "Diva Dragonslayer" |
“ | ' | Diva's pet is a falcon! | Animal de estimação da Diva é um falcão! |
和 | & | Render another escape form <b>&lt;</b> by escaping an ampersand | Render outro formulário de fuga < ao escapar de um ampersand |