Search Unity

[SOLVED] Large Font Size causes Frame rate issue when updating Text.text

Discussion in 'UGUI & TextMesh Pro' started by DaVeF101, May 7, 2015.

  1. DaVeF101

    DaVeF101

    Joined:
    Sep 7, 2014
    Posts:
    134
    I've noticed with Unity5 and the new UI that if I have a font size of say 120 and try and update the Text.text as the game is running I get massive frame rate issues.

    Is this normal or am I missing something?

    I'm developing a game which has a large score value displayed, which is only updated when it needs to.. but as the score value changes (Text.text) the game freezes for a moment as it does so... ?
     
    MrEsquire likes this.
  2. SergeySafonov

    SergeySafonov

    Joined:
    May 7, 2015
    Posts:
    2
    You must use a bitmap font. A dynamic font will be generate a texture after add a new symbol in the font.
     
  3. DaVeF101

    DaVeF101

    Joined:
    Sep 7, 2014
    Posts:
    134
    How can I use a bitmap font with Unity's UI? It only allows True Fonts?
     
  4. SergeySafonov

    SergeySafonov

    Joined:
    May 7, 2015
    Posts:
    2
  5. DaVeF101

    DaVeF101

    Joined:
    Sep 7, 2014
    Posts:
    134
    Sergey... you are a super star! Many thanks