NullReferenceException: Object reference not set to an instance of an object

TextMesh Pro 2.1.1

Hello everyone, I have such a mistake

NullReferenceException: Object reference not set to an instance of an object
UnityEditor.EditorGUILayout.IsChildrenIncluded (UnityEditor.SerializedProperty prop) (at <9a184ab867bb42c296d20ace04f48df3>:0)
UnityEditor.EditorGUILayout.PropertyField (UnityEditor.SerializedProperty property, UnityEngine.GUIContent label, UnityEngine.GUILayoutOption[ ] options) (at <9a184ab867bb42c296d20ace04f48df3>:0)
TMPro.EditorUtilities.TMP_EditorPanelUI.DrawMaskable () (at Library/PackageCache/com.unity.textmeshpro@2.1.1/Scripts/Editor/TMP_EditorPanelUI.cs:80)
TMPro.EditorUtilities.TMP_EditorPanelUI.DrawExtraSettings () (at Library/PackageCache/com.unity.textmeshpro@2.1.1/Scripts/Editor/TMP_EditorPanelUI.cs:46)
TMPro.EditorUtilities.TMP_BaseEditorPanel.OnInspectorGUI () (at Library/PackageCache/com.unity.textmeshpro@2.1.1/Scripts/Editor/TMP_BaseEditorPanel.cs:308)
UnityEditor.UIElements.InspectorElement+<>c__DisplayClass55_0.b__0 () (at <9a184ab867bb42c296d20ace04f48df3>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

Appears when you hover the mouse over the ExtraSettings, Face, Outline sections

6261496--690841--2020-08-31_09-39-18.png

The following change should resolve this issue.

6261597--690852--upload_2020-8-31_0-16-32.png

In order for this change to be persistent, you will need to make the change to the TMP package files contained in the global package cache “cache\packages\packages.unity.com\com.unity.textmeshpro@2.1.1” otherwise, the change will be reverted when you close / re-open Unity.

This change will be included in the next release of the TMP package.

1 Like

thanks, this fix solves the problem

I’m using com.unity.textmeshpro@3.0.1 and adding this solved my problem. Seems like it may still be an issue. (You mentioned 2.1.1)