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: