public TextAnchor anchor ;

Description

文本的哪个点共享变换位置。

using UnityEngine;

public class Example : MonoBehaviour { void Start() { GetComponent<TextMesh>().anchor = TextAnchor.MiddleCenter; } }