TextMeshPro.enableWordWrapping

bool enableWordWrapping;

Description

Enables or disables word wrapping. When disabled, the text will be displayed on a single line.


using UnityEngine;
using System.Collections;
using TMPro;

public class ExampleClass : MonoBehaviour
{
    void Example()
    {
        GetComponent<TextMeshPro>().enableWordWrapping = true;
    }
}