스타일을 재사용하려면 해당 스타일에 대한 커스텀 스타일시트를 생성하고 <style>
리치 텍스트 태그를 통해 텍스트에 적용하십시오.
커스텀 스타일에는 리치 텍스트 태그 열기 및 닫기, 선행 및 후행 텍스트가 포함될 수 있습니다.
예를 들어 텍스트의 제목은 빨간색으로 굵게 표시하고 양쪽에 별표가 있고 끝에 줄바꿈이 있는 큰 제목을 사용할 수 있습니다.
모든 헤딩에 대해 다음 내용을 입력하는 대신
<font-weight=700><size=2em><color=#FF0000>*Heading*</color></size></font-weight><br/>
해당 포맷을 모두 포함하는 ’H1’이라는 스타일을 만든 다음 이 스타일을 헤딩에 적용할 수 있습니다.
커스텀 스타일시트를 만드는 방법은 텍스트로 시작하기에서 스타일시트로 스타일 지정을 참조하십시오.
리치 텍스트 태그에서 커스텀 스타일시트를 사용하려면 스타일시트 에셋 이름과 스타일 이름인<style="assetName" name="styleName">
을 참조하십시오.
런타임 UI의 경우 패널 텍스트 설정에서 스타일시트를 기본 스타일시트로 설정한 경우 에셋 이름을 생략할 수 있습니다.<style="styleName">
.예시:<style="H1">This is heading 1</style>
.
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.