Version: 2017.1
public TextAlignment alignment ;

描述

如何对齐文本行(选项包括 Left、Right、Center)。

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Example() { GetComponent<TextMesh>().alignment = TextAlignment.Left; } }