public TextAlignment alignment ;

Description

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

using UnityEngine;

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