Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

TextMeshPro does not compile on 2019.1

Discussion in 'Editor & General Support' started by georgeq, Apr 19, 2019.

  1. georgeq

    georgeq

    Joined:
    Mar 5, 2014
    Posts:
    662
    I'm getting this message after migrating from 2018.3:

    Library\PackageCache\com.unity.textmeshpro@2.0.1\Scripts\Editor\TMP_SettingsEditor.cs(332,91): error CS0407: 'Object TMP_ResourceImporterProvider.GetTMPSettings()' has the wrong return type
     
  2. ZeroComfort

    ZeroComfort

    Joined:
    May 28, 2014
    Posts:
    2
    I have the same problem here, already tried different versions, removing the package, and delete the PackageCache.

    Edit:
    I found the problem for me, I had the incremental compiler package installed, removing it fixed the issue for me.
     
    Last edited: Apr 20, 2019
  3. georgeq

    georgeq

    Joined:
    Mar 5, 2014
    Posts:
    662
    Thank your, I removed the incremental compiler, but that didn't solve the problem for me... any other idea? I already re-imported the project both by deleting the library folder and by using the menu option, but still having the same problem.
     
  4. ZeroComfort

    ZeroComfort

    Joined:
    May 28, 2014
    Posts:
    2
    I think I also installed the preview version 2.0.1. And one thing you also need to make sure of is that your project is set to use the .net 4.x scripting runtime.
     
  5. georgeq

    georgeq

    Joined:
    Mar 5, 2014
    Posts:
    662
    There must be something else, because I have preview 2.0.1 and net 4.x from long time ago.
     
  6. Soraphis

    Soraphis

    Joined:
    Oct 25, 2013
    Posts:
    17
    You need to restart unity after removing the incremental compiler package.
    (if that does not help, remove the Library folder, to ensure its not a caching problem)
     
  7. Paul_Bronowski

    Paul_Bronowski

    Joined:
    Sep 3, 2014
    Posts:
    55