Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Create with Code Lesson 5.2, TextMeshProGUI could not be found.

Discussion in 'Community Learning & Teaching' started by coreyh2, Jan 29, 2020.

  1. coreyh2

    coreyh2

    Joined:
    Jun 4, 2019
    Posts:
    5
    I'm getting this frustrating bug after adding TextMeshPro in the lesson. I can find references to the problem on the forum but have had no luck fixing or continuing the project after adding

    using TMPro;

    public TextMeshProGUI scoreText;

    to GameManager.cs

    I've tried teshmeshpro 1.4.1 and 1.3.0

    visual studio is updated
    updated to unity 2018.4.16f1

    I haven't tried just restarting the project yet. I tried changing my text editor back and forth. Don't know how to set up a assembly definition but I made one and added textmeshpro and textmeshpro.editor and it didn't fix the problem.
     
  2. Valjuin

    Valjuin

    Joined:
    May 22, 2019
    Posts:
    224
    Your line of code reading ‘public TextMeshProGUI scoreText;’ should read:

    public TextMeshProUGUI scoreText;
     
    coreyh2 likes this.
  3. coreyh2

    coreyh2

    Joined:
    Jun 4, 2019
    Posts:
    5
    thanks that fixed it. I'm glad it was just me typing something wrong. That was driving me crazy.
     
unityunity