Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by TomiWolf · Jul 15, 2018 at 08:14 PM · textupdatebug-perhapsnamespace

Can't use namespace 'TMPro' with the TextMeshPro Package (2018.2.0f2)

Hello, I'm having a problem with the Text Mesh Pro package.

Whenever I try to use the namespace 'TMPro' in Unity 2018.2.0f2, it says that the namespace doesn't exist. And when I try to open the TextMeshProUGUI.cs in the solution explorer, it says that the file doesn't exist neither.

However if it did compile in a previous version (2018.1.0f2) and it works fine, but I can't modify the script in my current version. Could this be a bug?

Namespace Error: alt text Solution Explorer: alt text

error.png (30.7 kB)
namespace.png (16.9 kB)
Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image donutLaserDev · Jul 16, 2018 at 07:21 AM 0
Share

It sounds like all your Text$$anonymous$$eshPro files are in the Assets folder. Delete them and import the Text$$anonymous$$eshPro package via Package $$anonymous$$anager (Window -> Package $$anonymous$$anager). This should solve your issue.

avatar image TomiWolf donutLaserDev · Jul 16, 2018 at 04:14 PM 0
Share

I'm actually using the T$$anonymous$$Pro package. I tried to create a new empty project and I have the exact same problem, I'll add a image on the question maybe that'll help.

avatar image kavanavak · Aug 05, 2018 at 01:49 AM 0
Share

Resolve this issue??

7 Replies

· Add your reply
  • Sort: 
avatar image
5
Best Answer

Answer by TomiWolf · Jul 16, 2018 at 05:18 PM

Ok here's a temporary solution (Maybe it's not the best solution):

  1. In the editor, in the folder explorer go to Packages>TextMesh Pro, right-click the TMP folder and select show explorer, copy the folder direction or just go to C:\Users\ Your User \AppData\Local\Unity\cache\packages\packages.unity.com. You'll find all the unity packages, in this case com.unity.textmeshpro@1.2.4.

    1. And follow one of these steps (I'm not sure which one is the best):

a. Copy the scripts you need, in my case, TextMeshProUGUI.cs and paste them in Your Project Folder \Packages in the corresponding subfolder of the script, and now the visual studio solution should be able to find that .cs file.

b. In visual studio in the solution explorer (Usually in the right part of the screen) find the folder Unity.TextMeshPro>Packages>com.unity.textmeshpro>Scripts>Runtime and right-click and add an existing item, and add the script you need.


Apparently, that happens because in this Unity version, the Package Manager tries to copy and Paste the packages to a local project folder, but for some reason, they are empty and visual studio expects to be there all the package files in there. I still don't know if that's a problem in this unity version or something is wrong in my PC.

Better solution: Just update Visual Studio with the Visual Studio Installer

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TomiWolf · Jul 18, 2018 at 01:30 AM 0
Share

Here's a definitive solution: Update Visual Studio with the Visual Studio Installer program, now everything works fine!

avatar image WILEz1975 · Jul 21, 2018 at 10:30 PM 1
Share

Does not work. I have updated Visual Studio (Community 2017) but the error remains. Actually now the error has changed. ![alt text][1] The namespace is found now (after the VS update), but not the classes.

I had to manually copy all package files. But I do not feel very safe. I hope I have more problems with this move. [1]: /storage/temp/121291-screenshot-1.png

avatar image
12

Answer by Valthec · May 12, 2020 at 12:20 PM

Check if you are using Assembly Definition file for your scripts. If so, then open your .asmdef file with the inspector and make sure that Unity.TextMeshPro is on the Assembly Definition References list. It is not added automatically when you import TextMeshPro assets.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image lucabeisel · Jul 05, 2020 at 04:00 PM 0
Share

This one did it for me, I was trying to use T$$anonymous$$Pro in a self-written package. Thank you.

avatar image r6mus · Sep 29, 2020 at 11:04 AM 1
Share

You saved me tons of time thank you

avatar image nemeia · Jul 28, 2021 at 11:40 AM 0
Share

Saved me a lot of time after a lot of headache, this should be the top comment

avatar image darrelltstevens · Dec 06, 2021 at 10:12 AM 0
Share

this should be made the correct answer.

avatar image
3

Answer by NIHAALKNIGHT87 · Dec 16, 2018 at 05:20 PM

Just Download the Text mesh Pro From the Assert Store, To solve this Problem ("TMpro")

if U already have that then Delete entire folder of Text mesh Pro and Try it to Reimport the TMPro

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image zenixue · Apr 03, 2019 at 01:16 PM 0
Share

Thanks bro. Easiest solution. $$anonymous$$ade my day.

avatar image Nuthead · Dec 10, 2019 at 08:17 PM 0
Share

This worked for me. I had upgraded from VS 17 to 19. Needed to download T$$anonymous$$Pro again.

avatar image nemeia · Jul 21, 2021 at 02:24 PM 0
Share

Removing whole Text mesh Pro and reinstalling actually worked. Thanks for the help!

avatar image
1

Answer by Sercova · Aug 12, 2018 at 09:25 PM

Here is the answer to all your problems with TextMesh Pro and unity 2018.2: https://forum.unity.com/threads/textmesh-pro-unity-2018-1.511748/

I had to realize, but here is explained.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image anu_121 · Oct 05, 2019 at 03:36 AM 0
Share

Thanks. Your solution worked for me!!!

avatar image
0

Answer by jacksonkr · Apr 25, 2019 at 06:09 PM

  • TextMesh Pro was added to unity as of 2018.2

  • I was working on an old project when I saw this conflict so I had to remove tmp from our assets and upgrade the scripting library to .net 4.0 (from 3.5)

  • I had also upgrade visual studio two have the unity development package via Visual Studio Installer > modify

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

108 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How to add string once to the UI text, but update the substring every frame in unity? 0 Answers

Why if I execute .SetText on the Start it dont works. 1 Answer

All Text Components drawing text higher after update to 5.3 2 Answers

Text in the scene is not being updated! 0 Answers

My text document is updating twice when its only supposed to once 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges