텍스트 메시(Text Mesh) 는 텍스트 문자열을 표시하는 3차원 지오메트리를 생성합니다.
Component > Mesh > Text Mesh 에서 새 텍스트 메시를 생성할 수 있습니다.
프로퍼티: | 기능: |
---|---|
Text | 렌더링되는 텍스트입니다. |
Offset Z | 그릴 때 텍스트가 transform.position.z에서 오프셋되는 거리입니다. |
Character Size | 각 문자의 크기입니다. 텍스트 전체의 크기를 조절합니다. |
Line Spacing | 텍스트 라인 사이의 공백입니다. |
Anchor | 트랜스폼 포지션을 공유하는 텍스트의 포인트입니다. |
Alignment | 텍스트 라인의 정렬 방식(왼쪽, 오른쪽, 가운데)입니다. |
Tab Size | 탭 ‘\t’ 문자 입력에 필요한 공간의 크기입니다. ‘스페이스바’ 문자 오프셋의 배수입니다. |
Font Size | 폰트 크기입니다. 동적 폰트 크기를 치환할 수 있습니다. |
Font Style | 폰트 렌더링 스타일입니다. 폰트는 동적으로 마크해야 합니다. |
Rich Text | 이 프로퍼티를 선택하면 텍스트가 렌더링될 때 태그 처리가 활성화됩니다. |
Font | 텍스트를 렌더링할 때 사용하는 트루타입 폰트입니다. |
Color | 텍스트를 렌더링할 때 사용하는 전체 컬러입니다. |
텍스트 메시는 도로 표지, 그래피티 등의 렌더링에 사용할 수 있습니다. 텍스트 메시는 3D 씬에 텍스트를 배치합니다. GUI용 일반 2D 텍스트를 생성하려면, GUI 텍스트 컴포넌트를 대신 사용해야 합니다.
다음 단계에 따라 커스텀 폰트로 텍스트 메시를 생성해야 합니다.
참고: 텍스트 메시의 폰트를 변경하려면 컴포넌트의 폰트 프로퍼티와 폰트 머티리얼의 텍스처를 올바른 폰트 텍스처로 설정해야 합니다. 이 텍스처는 폰트 에셋의 폴드아웃 메뉴를 사용하여 찾을 수 있습니다. 텍스처를 설정하는 것을 잊은 경우 메시의 텍스트가 고르지 않게 표시되고 잘못 정렬됩니다.
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.