错误信息如下:
AppData/Local/Unity/cache/packages/packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMPro_Private.cs(3709,45): error CS0121: The call is ambiguous between the following methods or properties: TMPro.TMPro_ExtensionMethods.Compare(this UnityEngine.Color32, UnityEngine.Color32)’ and TMPro.TMPro_ExtensionMethods.Compare(this UnityEngine.Color32, UnityEngine.Color32)’.
解决方法:
1)在Asset中删除旧版本的TextMesh Pro
2)重新打开工程
3)菜单 Window -> TextMeshPro -> Import TMP essentials
4)菜单Edit -> Project Settings -> Editor
Asset Serialization Mode 改为 ForceText
Version Control Mode 改为 Visible Meta Files
5)Window -> TextMeshPro -> Project Files GUID Remapping Tool.
6)选择Scan,扫描完毕后选择Save.