텍스트 오브젝트는 다음 UI 컨트롤의 속성으로 정의합니다.
text
속성value
속성과 TextField에 대한 표시 텍스트를 설정하는 label
속성USS 텍스트 프로퍼티를 사용하여 폰트 크기 및 컬러 설정 등과 같이 텍스트의 스타일을 지정할 수 있습니다.
또한 새 폰트를 추가하여 텍스트의 스타일을 지정할 수도 있습니다.프로젝트에서 사용하기 전에 폰트를 폰트 에셋으로 전환하십시오.USS 스타일링 외에도 리치 텍스트 태그를 사용하여 텍스트 문자열의 특정 단어에 대한 스타일을 지정할 수 있습니다.
항목 | 설명 |
---|---|
텍스트 시작하기 | 텍스트의 스타일을 지정하고, 폰트를 생성하고, 예시를 사용하여 리치 텍스트 태그 및 스타일시트로 스타일을 지정하는 방법에 대해 알아봅니다. |
USS로 텍스트 스타일 지정 | UXML, USS 파일에서 USS 텍스트 프로퍼티 인라인을 사용하거나 UI 빌더에서 직접 텍스트의 스타일을 지정합니다. |
리치 텍스트 태그로 텍스트 스타일 지정 | 텍스트 문자열의 태그 사이의 단어에 대한 스타일을 지정합니다. |
지원되는 리치 텍스트 태그 | 지원되는 모든 리치 텍스트 태그를 찾습니다. |
폰트 에셋 | 다양한 폰트 에셋과 모든 프로퍼티에 대해 알아봅니다. |
스타일시트 에셋 | 커스텀 텍스트 스타일을 생성하여 리치 텍스트 태그를 확장합니다. |
텍스트에 스프라이트 포함 | 스프라이트 에셋을 생성하여 이모티콘 문자를 해석하고 텍스트에 포함시킵니다. |
컬러 그레디언트 | 컬러 그레디언트를생성하여 텍스트 문자열의 각 문자에 최대 4가지 컬러를 적용합니다. |
패널 텍스트 설정 에셋 | 패널 설정 에셋에서 참조되며 해당 패널 내에서 사용되는 모든 텍스트 오브젝트의 기본값을 컨트롤합니다. |
폴백 폰트 | 폰트 에셋에서 누락된 문자의 폴백 폰트를 추가합니다. |
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.