• 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
0

Answer by Amigo89 · Jul 07, 2019 at 05:21 AM

You should take this folder C:\Users\USERNAME\AppData\Local\Unity\cache\packages\packages.unity.com\com.unity.textmeshpro@2.0.1 and copy it to your project folder TextMeshPro It worked for me.

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
avatar image
0

Answer by spajus · Apr 13, 2020 at 03:19 PM

Since I run into this issue over and over myself, and then I forget how it gets solved, here's the usual issue and a solution without any hacks or copying.

The problem most likely is that Unity Visual Studio Code (or Visual Studio) integration is not generating all the necessary csproj files. Namely those that come from Unity package manager (usually TextMeshPro is one of them).

The solution almost always is to either downgrade Visual Studio Code (if you use VS Code) integration plugin, especially if you just upgraded it, or to see if there is a newer version with a fix. Sometimes newer versions are not "verified" so they are not suggested as an upgrade directly in Unity Package Manager.

Don't copy anything from anywhere, always find and fix the root cause instead.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

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

New Update Text Issue 0 Answers

server to unity news update and visa versa 1 Answer

Text Not updating 1 Answer

Realtime clock 3 Answers

How to fix TextMeshPro breaking lines and escaping random characters? 0 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