Search Issue Tracker

Fixed in 1.5.0-preview.3 & 2.1.0-preview.3

Fixed in 1.5.0-preview.3



Found in [Package]


Issue ID




[TextmeshPro] MissingReferenceException errors are thrown on selecting TextMeshPro object in TextMeshPro preset asset

Package: TextMeshPro


MissingReferenceException errors are thrown on selecting TextMeshPro object in TextMeshPro preset asset.

Steps to repro:
1. Open the attached project.
2. Text (TMP) > Change the color properties > Create its preset.
3. Delete Text (TMP) object from the Hierarchy.
4. Select preset asset TextMeshPro in the Project window.

Actual Result:
MissingReferenceException errors are thrown in the console.

Expected Result:
No error in the console.

Reproducible with Unity Version:
2020.1.0a15, 2019.3.0f1.

Reproducible with Package Version: 2.0.1, 2.0.0.

Working Fine with Package version: 1.4.1.

Windows 10 & Mac 10.14.

Stack trace:
MissingReferenceException: The variable m_renderer of TextMeshPro doesn't exist anymore.
You probably need to reassign the m_renderer variable of the 'TextMeshPro' script in the inspector.
TMPro.TextMeshPro.get_sortingLayerID () (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Runtime/TextMeshPro.cs:24)
TMPro.EditorUtilities.TMP_EditorPanel.DrawSortingLayer () (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_EditorPanel.cs:73)
TMPro.EditorUtilities.TMP_EditorPanel.DrawExtraSettings () (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_EditorPanel.cs:41)
TMPro.EditorUtilities.TMP_BaseEditorPanel.OnInspectorGUI () (at Library/PackageCache/com.unity.textmeshpro@2.0.1/Scripts/Editor/TMP_BaseEditorPanel.cs:260)
UnityEditor.Presets.PresetEditor.DrawInternalInspector () (at <3b74787e58694cdda2c241162159b3b7>:0)
UnityEditor.Presets.PresetEditor.DrawPresetData () (at <3b74787e58694cdda2c241162159b3b7>:0)
UnityEditor.Presets.PresetEditor.OnInspectorGUI () (at <3b74787e58694cdda2c241162159b3b7>:0)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass55_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <3b74787e58694cdda2c241162159b3b7>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

  1. Resolution Note (fix version 1.5.0-preview.3 & 2.1.0-preview.3):

    This issue has been resolved. The fix will be included in the next release of the TMP package which will be version 1.5.0-preview.3 for Unity 2018.4 and 2.1.0-preview.3 for Unity 2019.x or newer.

  2. Resolution Note (fix version 1.5.0-preview.3 ):

    Verified fixed:
    Version 2018.4.16f1 (e6e9ca02b32a)
    Wed, 22 Jan 2020 14:29:54 GMT
    Branch: 2018.4/release

    With the Package Version: 1.5.0-Preview.3

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.