Hi,
I can use Text Mesh Pro in my project and start without errors.
I use Text Mesh Pro also in a prefab, which will be a label for items on a 2D-board. For this I created a prefab out of a canvas with some TextMeshPro Text.
I want to create this “prefab-label” on runtime and fill the text with the properties of the item (e.g. name, value,…).
At creating of the prefab, I can add a TextMeshPro Text and configure it. I save the prefab. After closing, unity gives a message in the console that the referenced script is missing. If I “dive” in the prefab again, all the textmesh - texts-items are not a textmesh Text, but a single (empty?) Item without script anymore.
Is there an known error at saving prefabs with Text Mesh Pro or a workflow, how to make this kind of “Label-Prefabs?”
The aim is, to create some Labels for grafical programming (like the knot-Editor of Blender).
Thanks in advance for reply!
The creation of Prefabs that contain TMP components should work fine.
Can you provide the step for creating the prefab to allow me to reproduce the behavior you are seeing?
First of all, thanks for reply!
Here are the elementary steps:
I created a Canvas (Render Mode World Space)
I added a Element UI → “TextMeshPro Text”
I renamed the canvas to “test” and pulled it to Assets > Ressources.
The Icon of the “test” in the sample-scene became blue. Its TextMashPro Text is still working.
If I pull the “test” from the Resources in the sample-scene, the TextMesPro Text of this new “test (1)” shows at the inspector of “(Script)”:
Scripit: None (Mono Script). The associated script can not be loaded. Please fix any compile errors and assign a valid script.
If I use Text Mesh Pro Texts for testing propose in the sample scene, the scene starts and the Text is shown. Just the prefab stumbles.
Recently I updated Unity 2019.2.0f1 Personal. After first appearing of this I removed the “TextMesh Pro” Asset and downloaded it with the Asset Store.
That is likely the cause of the issue since TextMesh Pro is now included by default with Unity 2018.4 or newer. The Asset Store version is only for Unity 2017 or previous / older versions of Unity.
If this is an existing project with existing scenes that use TextMesh Pro, then you will need to migrate the project to the newer package manager version of TextMesh Pro which is version 2.0.1 for Unity 2019.x. See the following thread about this process and instructions.
If this is a new project where you don’t have scenes with TextMesh Pro objects and prefabs then simply remove the Asset Store version of TextMesh Pro by deleting the “TextMesh Pro” folder.
Then let’s make sure you still have the Package Manager / newer version of TextMesh Pro by opening the Package Manager located in the Window menu. There make sure version 2.0.1 of TextMesh Pro is installed.

After making sure version 2,0,1 is installed. You will need to import the TMP Essential Resources and the recommended TMP Examples & Extras located in the Window - TextMeshPro menu.

These resources will be added to your local project in a new “TextMesh Pro” folder.
At this point, you should be able to create / use TextMesh Pro as normal without the previous issues.
P.S. Unless you had manually removed the Package Manager version of TextMesh Pro you would have been getting errors about conflicts between these two versions of TextMesh Pro contained in the project.
This latest version of TextMesh Pro requires using the Scripting Runtime 4.x. See the following post about this in case your project isn’t set to that already.
P.S. Since it is now almost 4:15 AM for me. I will be going to sleep but will be back tomorrow in case you run into any additional unforseen issues.
Thanks for your help!
Everything is working fine now. My problem was, that I had the wrong version
1 Like