Search Unity

Question Setting TMP Fallback Font failed to Refresh showing text in Unity 2023 and Unity6000 0b12

Discussion in 'UGUI & TextMesh Pro' started by kei233, Mar 24, 2024.

  1. kei233

    kei233

    Joined:
    Dec 16, 2019
    Posts:
    59
    Hello everyone,

    It seems that adjusting the order of Fallback Fonts via code does not refresh the font.
    Even after adjusting and then searching for all TMP Text objects and calling
    Code (CSharp):
    1. tmpText.ForceMeshUpdate(true);//this worked in 2022
    , the font fails to refresh. Strangely enough, font refresh only seems to occur when manually adjusting the order in the Inspector.

    I have tried similar methods, such as using
    Code (CSharp):
    1. TMPro_EventManager.ON_FONT_PROPERTY_CHANGED(true, mainFont);//BY AI suggest
    to force the font refresh, but these attempts have been unsuccessful.

    Has anyone else experienced a similar issue? Are there any alternative solutions or workarounds that you have found effective? Any insights or tips would be greatly appreciated!
     
  2. kei233

    kei233

    Joined:
    Dec 16, 2019
    Posts:
    59
    bump due to no response for a week