Description

Lines of text are centered.


using UnityEngine;
using System.Collections;
using TMPro;

public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        GetComponent<TextMeshPro>().alignment = AlignmentTypes.Center;
    }
}