So, normally TextMeshPro works just fine in my Unity projects. However, when building an assembly for unit tests, the moment I create the main assembly definition in the scripts folder, suddenly my code stops recognizing the TMPro namespace. I’ve tried adding the references to the TMPro assembly definitions to the assembly to see if that would solve the problem, but nothing I’m doing seems to be working. If anyone else has encountered this problem in the past and figured out a way to solve it, I would really appreciate a solution.
TMPro isn’t a 2D thing, it’s a UI thing.
I’ll move your post to the TMPro/UI forum for you.
Does nobody know how to solve this? It’s really hindering my project’s development since I’m unable to write unit tests while this problem persists.
Bumping this again on the off chance someone could help me with this problem.
Have never used Addressables with TMP, largely because TMP relies on some of the old Resources folder trickery.
Is there any way you can live without putting the TMP parts of your project into Addressables?
Adding a reference to the TMP assembly is what you have to do;
Have you done that, hit Apply, and still get problems?
Yes, as I said I added the references and my scripts still do not recognize the namespace.
What do you mean here by “not recognize”?
Do you get compiler errors in Unity, or in your code editor?
Since I have the exact same problem I’m gonna reply in hope that somebody can help.
Even if I added the references, all of my scripts stops recognising TMPro, I get an error in my code editor AND in Unity, at the line
using TMPro;
as well as everywhere I try to access a component “TMP_Text”.
I just added this Assembly thing, I have no idea of what it does I just know I need it to test some of my scripts.
Hope that somebody can help me