I got an error when I defined TextMeshPro from the welcome window.

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
natsuha
Posts: 11
Joined: Fri Aug 13, 2021 9:28 am

I got an error when I defined TextMeshPro from the welcome window.

Post by natsuha »

Hello.

When I turned on TMPro from the welcome window, I got the following error

Assets\Plugins\Pixel Crushers\Common\Scripts\Ul\TextField.cs(38,16): error CS0246: The type or namespace name 'TMPro' could not be found (are you missing a using directive or an assembly reference?)

This is strange because I have already imported TextMeshPro and can use TMP outside of DS.
As a workaround, I deleted csproj and sln and restarted, but the situation did not change.
PixelCrushers disappeared from Tool because of the error, and I can't restore the settings.

Can you please tell me what to do in this case?
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: I got an error when I defined TextMeshPro from the welcome window.

Post by Tony Li »

Hi,

If TextMesh Pro is installed, the checkbox should work, with one caveat:

If you have imported the Dialogue System's assembly definition files (DialogueSystemAssemblyDefinitions.unitypackage), you must assign TextMesh Pro's asmdef to the DialogueSystem.asmdef and PixelCrushers.asmdef.
natsuha
Posts: 11
Joined: Fri Aug 13, 2021 9:28 am

Re: I got an error when I defined TextMeshPro from the welcome window.

Post by natsuha »

That was the cause. It was fixed successfully. Thank you!
User avatar
Tony Li
Posts: 22149
Joined: Thu Jul 18, 2013 1:27 pm

Re: I got an error when I defined TextMeshPro from the welcome window.

Post by Tony Li »

Glad to help!
Post Reply