public TextAlignment alignment ;

描述

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

using UnityEngine;

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