UI 풍부한 텍스트 는 간단한 마크업 태그를 사용하여 문자열의 섹션을 볼드, 이탤릭, 밑줄, 채우기 색상, 스트로크 변형 등으로 스타일링합니다.스타일링 태그를 TextLabel , TextButton 및 TextBox 개체에 적용할 수 있습니다.
풍부한 텍스트 활성화
속성 RichText 속성을 통해 개체당 풍부한 텍스트를 활성화해야 하거나 속성을 Properties 창에서 true로, 또는 LocalScript 속성을 로 설정해야 합니다.

local title = Instance.new("TextLabel")title.RichText = truetitle.Text = "Use a <b>bold title</b>"
지원되는 태그
부유한 텍스트 태그는 XML/HTML 태그와 유사하며 서식이 지정된 텍스트 주위에 열리고 닫는 태그를 모두 포함해야 합니다.
<b>Formatted text</b>
열었을 때의 순서대로 서로 다른 태그를 중첩할 수도 있습니다. You can also nest tags inside each other as long as you close them in the reverse order of how you opened them.
<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>

폰트 투명도
<font transparency=""> </font>
Text at <font transparency="0.5">50% transparency</font>.

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

볼드
<b> </b>
Text in <b>bold</b>.

이탈릭
<i> </i>
Text <i>italicized</i>.

취소선
<u> </u>
Text <u>underlined</u>.

취소선
<s> </s>
Text with <s>strikethrough</s> applied.

줄 바꾸기
<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...

탈출 양식
특정 문자를 렌더링하고 풍부한 텍스트 태그의 일부로 고려되지 않도록 면제하려는 경우 < 또는 > 와 같은 문자를 그들의 탈출 형태 에 작성할 수 있습니다.
문자 | 탈출 | 예시 | 결과 |
---|---|---|---|
< | < | 10 < 100 | 10 < 100 |
> | > | 100 > 10 | 100 > 10 |
" | " | Meet "Diva Dragonslayer" | “디바 드래곤슬레이어” 만나기 |
' | ' | Diva's pet is a falcon! | 디바의 애완동물은 독수리입니다! |
& | & | Render another escape form <b>&lt;</b> by escaping an ampersand | 아펜드를 이스케이프하여 다른 탈출 양식을 렌더링 < by escaping an ampersand |