TextMesh.characterSize 字符大小

var characterSize : float

Description描述

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

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

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Awake() {
		GetComponent<TextMesh>().characterSize = 10;
	}
}
GetComponent(TextMesh).characterSize = 10;
Page last updated: 2011-4-19