Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Updated Unity and Everything Broke

Discussion in 'Editor & General Support' started by the_terrible, Apr 30, 2020.

  1. the_terrible

    the_terrible

    Joined:
    Nov 4, 2015
    Posts:
    40
    alternate title: I did the thing I knew I would regret and here I am.

    Was using version 5.6.1f1 and updated to 2019.3.12f1.

    All 142 compiler errors appear to be from the failed import of a new library. When looking through the errors, they don't even seem to be referring to any code I have written. They all seem to be associated with TextMeshPro:

    Library\PackageCache\com.unity.textmeshpro@2.0.1\Scripts\Runtime\TMP_FontAsset.cs(405,34): error CS0029: Cannot implicitly convert type 'UnityEngine.TextCore.FaceInfo' to 'TMPro.FaceInfo'

    Library\PackageCache\com.unity.textmeshpro@2.0.1\Scripts\Runtime\TMP_FontAsset.cs(612,84): error CS1061: 'FaceInfo' does not contain a definition for 'tabWidth' and no accessible extension method 'tabWidth' accepting a first argument of type 'FaceInfo' could be found (are you missing a using directive or an assembly reference?)

    Library\PackageCache\com.unity.textmeshpro@2.0.1\Scripts\Runtime\TMP_Text.cs(4938,40): error CS0121: The call is ambiguous between the following methods or properties: 'TMPro.TMPro_ExtensionMethods.Multiply(UnityEngine.Color32, UnityEngine.Color32)' and 'TMPro.TMPro_ExtensionMethods.Multiply(UnityEngine.Color32, UnityEngine.Color32)'


    I'm using GitBucket for version control but there are some shaders I want to use that rely on newer versions of Unity, as I'm sure there will be other aspects as well that I'll need to use the latest version for, so I don't want to revert back to the old version I was using. Any help would be appreciated, thanks!
     
    crns13 likes this.
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,725
    It seems like you have two copies of TextMeshPro imported into your project or something like that?

    If I were you I'd try to scrub my project of TMP. Remove the assets via package manager, then manually delete any TMP folders that remain. Then, if you're using TMP and it's not working, try importing the most recent version through package manager.
     
  3. the_terrible

    the_terrible

    Joined:
    Nov 4, 2015
    Posts:
    40
    Thanks, that worked! I'm unfamiliar with using the package manager but it seems like a nifty tool.
     
  4. zheyuanzhou

    zheyuanzhou

    Joined:
    Oct 29, 2017
    Posts:
    22
    Bro. You save my Time!