Search Unity

Bug Null reference within TMP_SubmeshUI

Discussion in 'Editor & General Support' started by shivaprasad_unity, Nov 8, 2022.

  1. shivaprasad_unity

    shivaprasad_unity

    Joined:
    Mar 30, 2021
    Posts:
    19
    NullReferenceException: Object reference not set to an instance of an object.
    UnityEngine.Material.GetFloatImpl (System.Int32 name) (at <00000000000000000000000000000000>:0)
    UnityEngine.Material.GetFloat (System.String name) (at <00000000000000000000000000000000>:0)
    TMPro.TMP_SubMeshUI.UpdateMaterial () (at <00000000000000000000000000000000>:0)
    TMPro.TMP_SubMeshUI.SetMaterialDirty () (at <00000000000000000000000000000000>:0)
    UnityEngine.UI.MaskableGraphic.OnDisable () (at <00000000000000000000000000000000>:0)
    TMPro.TMP_SubMeshUI.OnDisable () (at <00000000000000000000000000000000>:0)


    TMP Version currently on latest stable version at the time of posting.

    Unable to find repro...
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,048
    When does this happen?
     
  3. shivaprasad_unity

    shivaprasad_unity

    Joined:
    Mar 30, 2021
    Posts:
    19
    Changing scenes using addressables.