Unity 2019 - How to fix TextMeshPro 2.0 error cs0433

懵懂的女人 提交于 2020-01-23 05:20:35

问题


I have just started new project that contains Vuforia SDK. After making some changes I decided to install GitHub extension from Asset Store to make some backup. After that my textMeshPro plugin went crazy, throwing an annoying error which I can't deal with. The error says:

Library\PackageCache\com.unity.textmeshpro@2.0.0\Scripts\Editor\TMP_PackageUtilities.cs(310,17): error CS0433: The type 'Task' exists in both 'System.Threading, Version=1.0.3333.0, Culture=neutral, PublicKeyToken=402899b480e6f383' and 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

Does anybody has an idea how to get rid of it?

My Unity version is 2019.1.0f2


回答1:


SOLUTION:

Thank you for your answers, I have found solution on other forum.

The way to fix the error in unity 2019.1.0f2

  1. Go to Window->Package Manager
  2. TextMesh Pro (Version 2.0.0 will be installed)
  3. Click on the arrow > on the left to see all the available versions. 4 .Update TextMesh Pro to 1.3.0 (same version as in Unity 2018.3.12f1) Let the compiler finish and you should see the error clearing from the console

Link to original post: Original post




回答2:


In Unity 2019.1.5 Looks like TextMeshPro needs at least .net ver 4, I changed .net from 3.5 to 4.6 by going: File > Build Settings > Player Settings > Player > Scripting Runtime Version (which also has a warning on 3.5), selecting 4.6, after reload, textMesh error gone ... moving onto all the other errors in my project!



来源:https://stackoverflow.com/questions/55781627/unity-2019-how-to-fix-textmeshpro-2-0-error-cs0433

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!