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. Dismiss Notice

Resolved Font size always force set to 36

Discussion in 'UGUI & TextMesh Pro' started by HatteFox, Apr 15, 2021.

  1. HatteFox

    HatteFox

    Joined:
    Jan 20, 2021
    Posts:
    12
    We have a strange problem.The font size is expected in the prefab,but when it is loaded to run time, the font size becomes 36.The picture below showed the problem.
    p.png
    Game view showed wrong result ,and Scene view is prefab.
     
  2. HatteFox

    HatteFox

    Joined:
    Jan 20, 2021
    Posts:
    12
    Unity 2019.4.2 ,Text Mesh Pro 2.1.1
     
  3. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    I recall this potentially being fixed in version 2.1.3. The release of TMP for Unity 2019.4 is 2.1.5 which was released today.
     
  4. HatteFox

    HatteFox

    Joined:
    Jan 20, 2021
    Posts:
    12
    Thanks,upgrade to 2.1.5 solved the problem,but RuntimePlatform.PS5 not be defined in Unity 2019.4.2.Maybe you should check this.
    p2.png
     
  5. Stephan_B

    Stephan_B

    Unity Technologies

    Joined:
    Feb 26, 2017
    Posts:
    6,588
    Looks like support for PS5 was added in 2019.4.23f1.

    I would suggest commenting the offending lines out until the next TMP package release if you are not able to upgrade to the latest 2019.4.

    Note: The change will have to be made in the Global Package Cache in order to make it persistent.
     
    Last edited: Apr 16, 2021