Textmesh Pro broken after update

A couple of weeks ago I upgraded from a 5.5.4 version of Unity to 2018. There were errors with Textmesh Pro but I opted to delete the new packaged version and run with the old version. That seemed to work fine, but I’ve since noticed that I cannot edit any text.

When I select an object that has the TMPro UI component, this happens:

The first error looks like this:

NullReferenceException: Object reference not set to an instance of an object
TMPro.EditorUtilities.TMP_UiEditorPanel.OnInspectorGUI () (at <46b0a09c9a7f442a882081eff9032016>:0)
UnityEditor.InspectorWindow.DoOnInspectorGUI (System.Boolean rebuildOptimizedGUIBlock, UnityEditor.Editor editor, System.Boolean wasVisible, UnityEngine.Rect& contentRect) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1647)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at C:/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

I’ve tried deleting the TMPro asset and reinstalling it. I’ve already tried going through the steps and using the packaged version instead, but that didn’t work either (a different set of problems!).

If anyone has any suggestions that’d be great!

Since there have been lots of API changes in Unity between 5.5 and 2018.4, I would recommend upgrading to the package manager version of TextMesh Pro and following the upgrade procedure outlined in the following sticky thread at the top of this forum specific to this process.

As usual be sure to backup the project first and carefully follow the direction / outlined steps. Also be sure to upgrade to version 1.5.0-preview.8 which is available in the Package Manager but might require you enable in the Advanced tab of Package Manager to see preview packages.

Let me know if you run into any other issues in this process.

Thanks for your reply!

So I followed the steps as best I could (having already updated to 2018 a while ago I couldn’t follow it to the letter), but unfortunately I’m getting Missing (Mono Script) on all of my Textmesh components and fonts.

I opened a new scene, double checked player settings, cleared the old version of TMP pro, and then installed the package with the latest version. I Imported the assets and ran the GUID remapping tool.

Did the Project GUID Remapping tool find any resources that needed to be updated?

Take a look at the alternate GUID conversion files which referenced in Update Notes item #6.

I tried using those new files but no change unfortunately. The scan only found 4 files (three fonts and the main scene)

Do those appear to work correctly after saving the changes?

It is important to make sure Asset Serialization mode is set to text. The following step is also key as per those instructions.

Yup it was set to Force Text.

When I apply the scan changes, those few assets still have the “the associated script could not be loaded” error.

Update, I found strange fix. On a whim I ran the GUID tool again but with the main scene open instead of the blank scene…and it worked! Who knew. Thanks for your help, hopefully this is useful to someone else.

1 Like