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

[Solved] Build Failed because of Textmesh Pro

Discussion in 'Unity Build Automation' started by NoxfallStudios, Apr 4, 2017.

  1. NoxfallStudios

    NoxfallStudios

    Joined:
    Oct 17, 2016
    Posts:
    17
    Hi all,

    yesterday I updated to Unity 5.6.0f3 and installed the Textmesh pro plugin in an existing project that was previously created in Unity 5.5. When I attempt to build the project with UCB it fails with this error:

    "error CS0246: The type or namespace name `TMPro' could not be found. Are you missing an assembly reference?"

    I'm able to build the project directly on my android device so it might be an incompatibility problem between the plugin and UCB?

    Thanks in advance.
     
  2. Zilk

    Zilk

    Joined:
    May 10, 2014
    Posts:
    329
    Do a clean rebuild, that worked for me.
     
  3. NoxfallStudios

    NoxfallStudios

    Joined:
    Oct 17, 2016
    Posts:
    17
    Thanks! It also worked for me :)
     
  4. musickgm

    musickgm

    Joined:
    Mar 19, 2016
    Posts:
    15
    Pardon my ignorance, but what is a "clean rebuild". I'm having this exact same problem.
     
  5. Basti_TinyRoar

    Basti_TinyRoar

    Joined:
    Oct 4, 2016
    Posts:
    11
    Hey!

    1. Press the arrow at the new build button.
    2. Press build a combination...
    3. There it is! :)
     
    musickgm likes this.
  6. musickgm

    musickgm

    Joined:
    Mar 19, 2016
    Posts:
    15
  7. purplehaze90

    purplehaze90

    Joined:
    Feb 3, 2017
    Posts:
    13
    I am using Unity 5.6.I am not able to find the Build a combination option.The build button does not have any arrow beside it either.I check the Build settings too but there does not exist any such option.
     
  8. musickgm

    musickgm

    Joined:
    Mar 19, 2016
    Posts:
    15
    purplehaze90 likes this.
  9. markgrossnickle

    markgrossnickle

    Joined:
    Aug 21, 2017
    Posts:
    32
    I had references to TextMesh Pro in scripts within my plugin folder but had placed TextMeshPro itself outside of plugins. I believe plugins folder is compiled first and thus it couldn't find the TextMeshPro until I moved it. That or just moving the folder caused the project to clean as other mentioned.
     
  10. Sadun_KD

    Sadun_KD

    Joined:
    May 29, 2018
    Posts:
    1
    Just go to the asset store and dowanload textmesh pro asset and import it it will work.
     
    karimhussain4test likes this.
  11. jjrohrer

    jjrohrer

    Joined:
    May 1, 2016
    Posts:
    1
    I'm using 2018.2.20f1...

    I was seeing this error in the editor, even before compiling. By looking at Visual Studio's suggested fixes, I learned I needed using TMPro; added to the mix.

    I hope this helps someone.
    Annotation 2019-01-15 101802.jpg
     
    joranerogier likes this.
  12. karimhussain4test

    karimhussain4test

    Joined:
    Feb 6, 2019
    Posts:
    1
    That's the BEST EVER SOLUTION without code. Just download TEXTMESH and it finally worked.
     
  13. Unity-Artcraft

    Unity-Artcraft

    Joined:
    Jul 28, 2018
    Posts:
    85
    Not working at all. Now I'm getting error messages because of conflict.
    TMPro_UGUI_Private exist 2 times .... even though it exist only one time....
     
    Last edited: Jun 12, 2019