Page 1 of 1

The type or namespace name 'TMPro'

Posted: Tue Nov 08, 2022 7:52 am
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!

Re: The type or namespace name 'TMPro'

Posted: Tue Nov 08, 2022 8:14 am
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).

Re: The type or namespace name 'TMPro'

Posted: Wed May 07, 2025 1:43 am
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.

Re: The type or namespace name 'TMPro'

Posted: Wed May 07, 2025 8:18 am
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.

Re: The type or namespace name 'TMPro'

Posted: Fri May 09, 2025 1:17 am
by Arctichorse9
Thank you so much.

Re: The type or namespace name 'TMPro'

Posted: Fri May 09, 2025 7:54 am
by Tony Li
Happy to help!