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;
Page last updated: 2011-4-19