Search Unity

TMPro Upgrade - The call is ambiguous between the following methods or properties...

Discussion in 'UGUI & TextMesh Pro' started by ina, Oct 22, 2018.

  1. ina

    ina

    Joined:
    Nov 15, 2010
    Posts:
    1,085
    Just upgraded to 1.2.4 and received a bunch of errors like this:

    Code (CSharp):
    1. packages.unity.com/com.unity.textmeshpro@1.2.4/Scripts/Runtime/TMPro_Private.cs(3551,92): 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)'
    2.  
    Which plugin to choose?

    Code (csharp):
    1.  
    2. Multiple plugins with the same name 'tmpro_plugin' (found at 'Packages/com.unity.textmeshpro/Plugins/64 Bit Plugins/TMPro_Plugin.bundle' and 'Assets/TextMesh Pro/Plugins/64 Bit Plugins/TMPro_Plugin.bundle'). That means one or more plugins are set to be compatible with Editor. Only one plugin at the time can be used by Editor.
    3.  
    4.  
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    The TMP UPM package is installed by default in Unity 2018.2. So if you still have the previous version of TextMesh Pro present in your project, you will get this error.

    Please make sure you back up your project first and then follow the upgrade procedure outlined in the sticky post about TMP and Unity 2018.1. Especially the updated notes at the bottom of the first post.