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: 22112
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).
Post Reply