Inside your foreach loop, you get the `Text ` component: this is Unity's UI Text component, not Text Mesh Pro's. First, make sure you have `using TMPro; ` to access any Text Mesh Pro class and get the correct component. UI is `TextMeshProUGUI `; 3D is `TextMeshPro `.
↧
Trending Articles
More Pages to Explore .....