I am working on a game where I need to Instantiate TMP text as a gameobject (tried instantiating as TMP text but wouldn't appear in the list where I add the objects). I change the text value while instantiating and that works but even though the prefab text has max opacity the text appears with 0 opacity. Thank you in advance for your help!
Asked
Active
Viewed 658 times
0
-
Is it a `TextMeshProUGUI`? In that case it would need to be instantiated under a UI Canvas – derHugo Mar 06 '22 at 13:14
-
Yes, but I forgot to mention that it is instantiated under a UI canvas. – user4821 Mar 06 '22 at 18:23
-
Are you instantiating from a prefab? – Jay Mar 08 '22 at 18:57
-
Yes I am instantiating from a prefab – user4821 Mar 08 '22 at 20:43