TextMesh.characterSize 字符大小


var characterSize : float

Description描述

The size of each character (This scales the whole text)

每个字符的大小(这个是整个文本的比例)。

  • C#

  • JavaScript

using UnityEngine;using System.Collections;public class example : MonoBehaviour {void Awake() {GetComponent<TextMesh>().characterSize = 10;}}
GetComponent(TextMesh).characterSize = 10;


,