The bounds of the text object. (Read-only)
using UnityEngine; using System.Collections; using TMPro; public class ExampleClass : MonoBehaviour { void Example() { Bounds bounds = GetComponent<TextMeshPro>().bounds; } }