Having an issue with some Errors (might be TextMeshPro related)

Hi there, In the last few days I started having a bunch of errors on my project and I can’t figure out what to do to fix them. I’m using Unity version 2018.3.4f1

Here is the error message itself:

It seems like it’s TextMeshPro related, and when I open up objects that have the TextMeshProUGUI (script), it looks different than before. I don’t have a screenshot of what it used to look like but here’s what it looks like now:

I also seem to have lost the ability to add new TextMeshPro items under the UI menu.

Not sure what happened, I didn’t update my version of Unity, but I did update the UnityHub recently.

Anyone know what I can do to resolve this? This is my first big project and I’m a bit scarred of messing something up with the project files. Maybe I need to update something?

Thank you!

Looks like your inspector is in Debug mode. Running the inspector in this way will cause issues as none of the Editor callbacks from the Editor would happen.

Switch the Inspector back to normal mode and then create a new TMP object and see if the issues go away.

The inspector is not in Debug mode, I tried putting it in Debug mode an then normal again, still having the same issue.

Besides those errors, do you see any other errors in the Console? Looks like the Editor scripts used by TMP are not working then.

Please create a new empty project to see if you get the same behavior.

If the behavior persists, maybe the package got corrupted in the download process. I would then suggest deleting the global package cache. See the following for locations of this Global package cache.

1 Like

So creating a new project, or opening up an old one, both work fine. The issue seems to only be with this project.

Should I still try deleting the cache? If so, do I delete the entire cache folder? Will it be regenerated automatically or do I need to do something?

You could try deleting the local project cache for TMP which is located in the Library/PackageCache/com.unity.textmeshpro@… and see if that resolves the issue. If not, I would remove the global pacakge cache.

So for now I ended up fixing this by creating a new project and importing my old stuff over. It seems to be working fine now, really weird, not sure what happened. If it happens again I’ll try deleting the cache to see if that fixes it. Thanks!