My TextMesh Pro text is not visible.

I wanted to create a “nickname” that is above the player. My code is:

 public TextMeshProUGUI TextPro;
    public void awake()
    {
            TextPro.text = UI.nickname;
            TextPro.autoSizeTextContainer = true;
    }

But I can’t see the text in the game :frowning:

Any suggestions or do you need more information?

Thank you for your help.

Add object TextMeshPro in hierarchy, and this object add to field TextPro in script attached to game object