The type or namespace name 'TMPro'

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
User avatar
rauljl1
Posts: 55
Joined: Fri Apr 15, 2022 7:40 pm

The type or namespace name 'TMPro'

Post by rauljl1 »

Hi, Tony.
I am trying to perform unit tests.
I imported the assembly definitions package and it's almost all set.
I only have 2 more errors:
Assets\Plugins\Pixel Crushers\Dialogue System\Scripts\UI\Utility\TextMeshProTypewriterEffect.cs(73,19): error CS0246: The type or namespace name 'TMPro' could not be found (are you missing a using directive or an assembly reference?)
Assets\Plugins\Pixel Crushers\Dialogue System\Scripts\UI\Utility\TextMeshProTypewriterEffect.cs(74,19): error CS0246: The type or namespace name 'TMPro' could not be found (are you missing a using directive or an assembly reference?)

Where should I put the assembly for it to work?
Thank you!
User avatar
Tony Li
Posts: 23250
Joined: Thu Jul 18, 2013 1:27 pm

Re: The type or namespace name 'TMPro'

Post by Tony Li »

Hi,

The TextMesh Pro asmdef is in the Packages section (not the Assets section) of the Project view. Add Packages > TextMeshPro > Scripts > Runtime > Unity.TextMeshPro.asmdef to all four Dialogue System asmdefs (PixelCrushers, PixelCrushersEditor, DialogueSystem, and DialogueSystemEditor).
Arctichorse9
Posts: 76
Joined: Wed Sep 25, 2024 11:26 pm
Location: New York City
Contact:

Re: The type or namespace name 'TMPro'

Post by Arctichorse9 »

I have this same error message after installing Grid Controller and then the assemblies to add the Pixelcrushers Save System component to the Grid Controller. I don't know how to fix it. Thanks for any help.
User avatar
Tony Li
Posts: 23250
Joined: Thu Jul 18, 2013 1:27 pm

Re: The type or namespace name 'TMPro'

Post by Tony Li »

Hi,

Inspect the assembly definition files, such as PixelCrushers.asmdef and DialogueSystem.asmdef, and add Unity.TextMeshPro to the Assembly Definition References list.
Arctichorse9
Posts: 76
Joined: Wed Sep 25, 2024 11:26 pm
Location: New York City
Contact:

Re: The type or namespace name 'TMPro'

Post by Arctichorse9 »

Thank you so much.
User avatar
Tony Li
Posts: 23250
Joined: Thu Jul 18, 2013 1:27 pm

Re: The type or namespace name 'TMPro'

Post by Tony Li »

Happy to help!
Post Reply