#Need help accessing a Text from a TextMeshPro via Script
1 messages · Page 1 of 1 (latest)
This is my Script. I have tried a lot of combinations and can't seem to get it right.
the class you want is TextMeshProUGUI
oh yeah did not catch that
Or the less derived TMP_Text
You need this component https://docs.unity3d.com/Packages/com.unity.textmeshpro@1.0/api/TMPro.TextMeshProUGUI.html
And it has a .text property that holds the string
i didnt know how to import (using directive) the TextMeshProUGUI
using TMPro
Nvm i got it wrong
yeah it's definitely confusing