TMP from package manager: preview.3 - 2.1.0, and yes I already reimported the essential resources:
I get a ton of spam for this error on scene startup and editor startup, it also happens when building the project from the command line.
UnassignedReferenceException: The variable m_sharedMaterial of TextMeshProUGUI has not been assigned.
You probably need to assign the m_sharedMaterial variable of the TextMeshProUGUI script in the inspector.
UnityEngine.Material.GetFloat (System.String name) (at <7d22f8e71133418c87c7b26ea181f3e3>:0)
TMPro.TMP_SubMeshUI.UpdateMaterial () (at Library/PackageCache/com.unity.textmeshpro@2.1.0-preview.3/Scripts/Runtime/TMP_SubMeshUI.cs:702)
TMPro.TMP_SubMeshUI.SetMaterialDirty () (at Library/PackageCache/com.unity.textmeshpro@2.1.0-preview.3/Scripts/Runtime/TMP_SubMeshUI.cs:610)
UnityEngine.UI.MaskableGraphic.OnValidate () (at C:/Program Files/Unity/Hub/Editor/2019.3.0f3/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/MaskableGraphic.cs:171)
I am already aware of this issue which has already been resolved. The fix will be included in the next preview release which will be Preview 4 which should be out later this week or over the weekend.
Thanks, good to hear. I’d like to drop in the code, but anything in the package manager system seems to re-write itself once Unity is re-opened, annoying.
Note, I recently updated to preview 4, and reimported the essential assets. I still get this error:
UnassignedReferenceException: The variable m_sharedMaterial of TextMeshProUGUI has not been assigned.
You probably need to assign the m_sharedMaterial variable of the TextMeshProUGUI script in the inspector.
UnityEngine.Material.GetFloat (System.String name) (at <f38c71c86aa64e299d4cea9fb7c715e1>:0)
TMPro.TMP_SubMeshUI.UpdateMaterial () (at Library/PackageCache/com.unity.textmeshpro@2.1.0-preview.4/Scripts/Runtime/TMP_SubMeshUI.cs:706)
TMPro.TMP_SubMeshUI.SetMaterialDirty () (at Library/PackageCache/com.unity.textmeshpro@2.1.0-preview.4/Scripts/Runtime/TMP_SubMeshUI.cs:614)
UnityEngine.UI.MaskableGraphic.OnValidate () (at C:/Program Files/Unity/Hub/Editor/2019.3.0f6/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/MaskableGraphic.cs:171)