Hi. Have an issue with Text Component

Hello everyone that can help me with this issue.
The course for unity is 2018 and i have 2022 version, is no to much diferente but in the video 21 of the course [Complete C# Unity Game Developer 2D (2018)
I am having issues to asing the text for the presentation of the game.
Question Textcomponent1
In the image shows the place where the text should appear but when I click the dot shows emty folder.


So I don´t know what I have done wrong…

Unity 2022 does not have a Text component anymore. You have to use the TextMeshPro version instead. The type is also different. You need to use

using TMPro;
TextMeshProUGUI _textComponent;
1 Like

Well thanks for the info…

Now i am a bit stuck in this…

To set the text you’d do the same as with Text

_textComponent.text = "Hello World and welcome to this adventure";

I’m not sure which course this is, though. Looks like one of the archived courses

1 Like

yes is the
Complete C# Unity game developer 2D (2018)

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

Privacy & Terms