TextMesh.alignment 对齐
var alignment : TextAlignment
Description描述
How lines of text are aligned (Left, Right, Center)
文本行是怎样对齐的(Left, Right, Center)。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Awake() {
GetComponent<TextMesh>().alignment = TextAlignment.Left;
}
}
GetComponent(TextMesh).alignment = TextAlignment.Left;
最后修改:2011年4月19日 Tuesday 8:53