Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

TextMesh.alignment

Switch to Manual
public TextAlignment alignment;

Description

How lines of text are aligned (Left, Right, Center).

using UnityEngine;

public class Example : MonoBehaviour { void Start() { GetComponent<TextMesh>().alignment = TextAlignment.Left; } }

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