Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug NullReferenceException at TMPro.TMP_SubMeshUI.UpdateMaterial(TMPro.TMP_SubMeshUI)

Discussion in 'UGUI & TextMesh Pro' started by EyeDev44, Jul 11, 2023.

  1. EyeDev44


    Apr 8, 2017
    Unty 2021 & 2022 both LTS. Can't catch this exception, but see a lot of users have it on Android:
    Code (CSharp):
    1. Fatal Exception: java.lang.Exception: NullReferenceException : Object reference not set to an instance of an object.
    2.        at TMPro.TMP_SubMeshUI.UpdateMaterial(TMPro.TMP_SubMeshUI)
    3.        at TMPro.TMP_SubMeshUI.SetMaterialDirty(TMPro.TMP_SubMeshUI)
    4.        at UnityEngine.UI.MaskableGraphic.OnDisable(UnityEngine.UI.MaskableGraphic)
    5.        at TMPro.TMP_SubMeshUI.OnDisable(TMPro.TMP_SubMeshUI)