VS does not like my declaration of: public Text text; Why? I used it in another script and it worked fine.
Hi Eric,
Text is a member of the UI namespace, so you need to import it with the line using UnityEngine.UI;
1 Like
Ahh! Thank you! I knew it had to be something like that. I had written another script with Text in it and it worked. I went back a referenced that script and sure enough it had using UnityEngine.UI
Thank you!
1 Like
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.