Page 1 of 1

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

Posted: Thu Nov 25, 2021 10:01 pm
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?

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

Posted: Thu Nov 25, 2021 10:59 pm
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.

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

Posted: Thu Nov 25, 2021 11:11 pm
by natsuha
That was the cause. It was fixed successfully. Thank you!

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

Posted: Fri Nov 26, 2021 8:08 am
by Tony Li
Glad to help!