TextMeshPro.anchor

Description

Determines which point of the text shares the position of the Transform.


using UnityEngine;
using System.Collections;
using TMPro;

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