Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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:
    4,428
    When does this happen?
     
  3. shivaprasad_unity

    shivaprasad_unity

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