Hi,
FindObjectOfType returns the first object it finds, whatever Unity defines as “first”. If you have only one TextMeshProUGUI object in your scene, your approach is perfectly fine. 
See also:
- Forum User Guides : How to mark a topic as solved
Hi,
FindObjectOfType returns the first object it finds, whatever Unity defines as “first”. If you have only one TextMeshProUGUI object in your scene, your approach is perfectly fine. 
See also: