Search Unity

Question Text issues on Play

Discussion in 'Editor & General Support' started by qiveal, May 19, 2022.

  1. qiveal

    qiveal

    Joined:
    Jan 31, 2022
    Posts:
    320
    I'm having a lot of text issues right now, I support multiple languages in my game, I use best fit for all the texts. Then I get errors saying "
    Failed to update dynamic font (SigmarOne-Regular) texture; all the needed characters do not fit onto a single texture (max size 4096). Try using less text or a smaller font size.
    UnityEngine.UI.ScrollRect:LateUpdate ()
    "

    Which makes no sense, it's okay for other languages and not okay for another. It's worked for a while I don't know what I changed. Sometimes one text is there, and sometimes when I restart the game it's suddenly not. I have no idea what is causing this.
     
  2. qiveal

    qiveal

    Joined:
    Jan 31, 2022
    Posts:
    320
    It makes no sense when I change the max size param on another texts it effects the rest of the texts.
     
  3. qiveal

    qiveal

    Joined:
    Jan 31, 2022
    Posts:
    320
    Solved i'm gonna ditch best fit, instead I'm just gonna best fit it in code using Text.cachedTextGenerator.fontSizeUsedForBestFit