public TextAnchor anchor;
Описание
Какая точка текста совпадает с позицией Transform.
using UnityEngine;
public class Example : MonoBehaviour
{
void Start()
{
GetComponent<TextMesh>().anchor = TextAnchor.MiddleCenter;
}
}