Search Unity

Question TMP Hidden InternalErrorShader after some unfortunate manipulations

Discussion in 'UGUI & TextMesh Pro' started by Whatever560, Jun 30, 2020.

  1. Whatever560

    Whatever560

    Joined:
    Jan 5, 2016
    Posts:
    513
    EDIT : Issue solved, I was missing the "Import TMP Essential Resources"

    Original issue
    I'm was in the process of cleaning my git repo and unfortunately things went a bit wrong and I can't revert. In the process i accidentally put back an old text mesh submodule and it now appear that a lots of TMP based assets shaders are broken.

    How could I diagnosis this? I bet there might be some shader ids that are all wrong, I could do a search/replace in VSC.

    I tried to clear shader cache in the Graphics tab of the project but it didn't help. Actually I even tried to create new text mesh items (UI) but they have the same issue.

    Thank you very much.

    Exemple :
    upload_2020-6-30_14-18-6.png
    upload_2020-6-30_14-19-39.png
    In view :
    upload_2020-6-30_14-15-57.png
     
    Last edited: Jun 30, 2020
  2. Whatever560

    Whatever560

    Joined:
    Jan 5, 2016
    Posts:
    513
    I found this line in the SDF Shader : m_Shader: {fileID: 4800000, guid: 68e6db2ebdc24f95958faec2be5558d6, type: 3}
    And this one in the Sprite : m_Shader: {fileID: 4800000, guid: cf81c85f95fe47e1a27f6ae460cf182c, type: 3}

    Could it be that shaders were lost somewhere ?
     
  3. Whatever560

    Whatever560

    Joined:
    Jan 5, 2016
    Posts:
    513
    Issue solved, I was missing the "Import TMP Essential Ressources"