-
Properties
alignment: How lines of text are aligned (Left, Right, Center).
anchor: Which point of the text shares the position of the Transform.
characterSize: The size of each character (This scales the whole text).
color: The color used to render the text.
font: The Font used.
fontSize: The font size to use (for dynamic fonts).
fontStyle: The font style to use (for dynamic fonts).
lineSpacing: How much space will be in-between lines of text.
offsetZ: How far should the text be offset from the transform.position.z when drawing.
richText: Enable HTML-style tags for Text Formatting Markup.
tabSize: How much space will be inserted for a tab '\t' character. This is a multiplum of the 'spacebar' character offset.
text: The text that is displayed.public class Test1 : MonoBehaviour { public TextMesh mText3d; void Start() { mText3d.text = "aaa \n bbb"; } }
https://docs.unity3d.com/ScriptReference/TextMesh.html
'Unity' 카테고리의 다른 글
Unity - Culling Mask (0) 2020.11.07 Unity Component - Camera (0) 2020.11.07 Unity 무료 assets 사이트 (0) 2020.08.02 Unity - Scene 전환 (0) 2020.08.01 Unity - 기초 개념 (0) 2020.08.01 Unity - WebView (0) 2020.07.30 Unity - device camera, webcamtexture (0) 2018.02.07 Unity 소리(사운드, 효과음) 재생 - AudioSource, AudioClip (0) 2018.01.17