Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

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; } }