Problem occurred after success

After successfully updating my fonts,due to deletion of Story text and Heading text(not the MeshPro),the empty object’s textComponent created in the few lectures back could not be attached to TextMesh of story or heading text.
So,the array of states is not working.
How to correct that?

Hi Prateek,

Objects can be assigned to variables of the same type only. Check the type of your variable. Remember you can also look at the lecture code changes via the link in the Resources of each lecture.

Ok,it worked by adding “using TMPro” and using data type “TextMeshProUGUI” instead of “Text”

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms