get component text mesh pro
Code Example - get component text mesh pro
GetComponent<TMPro.TextMeshProUGUI>().text
unity change tmp text from script
using UnityEngine.UI;
using TMPro;
void Update()
{
TextMeshPro lemonsss = GetComponent<TextMeshPro>();
}