TextMeshPro.lineLength

float lineLength;

Description

Determines where word wrapping will occur. This is only relevant when word wrapping is enabled.


using UnityEngine;
using System.Collections;
using TMPro;

public class ExampleClass : MonoBehaviour
{
    void Awake()
    {
        TextMeshPro textmeshPro = GetComponent<TextMeshPro>();
        textmeshPro.lineLength = 48.5f;
    }    
}