TextMesh.anchor
var anchor: TextAnchor;
TextAnchor anchor;
anchor as TextAnchor
Description

Which point of the text shares the position of the Transform.

	GetComponent(TextMesh).anchor = TextAnchor.MiddleCenter;
using UnityEngine;
using System.Collections;

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

public class Example(MonoBehaviour):

	def Example() as void:
		GetComponent[of TextMesh]().anchor = TextAnchor.MiddleCenter