TextMesh.anchor

Switch to Manual
public TextAnchor anchor;

Description

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

using UnityEngine;

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

Did you find this page useful? Please give it a rating: