void UpdateMeshPadding ();


Function forcing a re-computation of the required mesh padding based on the material properties to prevent clipping.

Note: This function should be called after modifying material properties via script. This function will result in the mesh being regenerated in the next frame update.

using UnityEngine;
using System.Collections;
using TMPro;

public class ExampleClass : MonoBehaviour
    void Example()
        TextMeshPro textmeshPro = GetComponent<TextMeshPro>();
        textMeshPro.fontSharedMaterial.SetFloat("_OutlineWidth", 0.2f);