public TextAnchor anchor ;

Description

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

using UnityEngine;
using System.Collections;

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