TextMesh.anchor

var anchor : TextAnchor

Description

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

JavaScript
    GetComponent(TextMesh).anchor = TextAnchor.MiddleCenter;