I am using Text Mesh Pro in my Unity 2019.3.4f. The TMP works fine in unity, but in the code editor, Visual Studio Code, the TMP related things are marked with red wave underline, which means the VSCode could not get the reference of TMP.

In my csproj file, the TMP reference exists, here are some related codes:

<ProjectReference Include="Unity.TextMeshPro.csproj">

ProjectReference Include="Unity.TextMeshPro.Editor.csproj">

My TMP works fine in every aspects, but there are code warnings in the VScode, "could not fine the namespace of TMPro". Is there anyone know how to fix it?

  • 2
    \$\begingroup\$ Your xml looks like msbuild, you should check that vscode and not visual studio is selected in preferences? Or did you mean visual studio? vscode uses .json. \$\endgroup\$
    – Emil
    Jan 26 at 6:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.