Which point of the text shares the position of the Transform.
GetComponent.<TextMesh>().anchor = TextAnchor.MiddleCenter;
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Example() { GetComponent<TextMesh>().anchor = TextAnchor.MiddleCenter; } }
Did you find this page useful? Please give it a rating: