var lineSpacing : float
Description描述
How much space will be in-between lines of text
在文本行之间的多少空距。也就是每行之间的行距。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Awake() {
GetComponent<TextMesh>().lineSpacing = 10;
}
}
GetComponent(TextMesh).lineSpacing = 10;