TextMeshPro.isOverlay

bool isOverlay;

Description

Sets the RenderQueue along with Ztest to force the text to be drawn last and on top of scene elements. This is set to false by default.


using UnityEngine;
using System.Collections;
using TMPro;

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