Documentation

Unity Engine

Download Unity

Unity Engine

alignment

How lines of text are aligned (Left, Right, Center).
Read time 1 minuteLast updated 3 days ago

Definition

public TextAlignment alignment { get; set; }

Examples

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