change text in TMP unity code example
Example 1: unity change tmp text from script
using UnityEngine.UI;
using TMPro;
void Update()
{
TextMeshPro lemonsss = GetComponent();
}
Example 2: get component text mesh pro
GetComponent().text
using UnityEngine.UI;
using TMPro;
void Update()
{
TextMeshPro lemonsss = GetComponent();
}
GetComponent().text