Search Unity

TextMeshPro 3.0.1 Doesn't preserve prefab font size

Discussion in 'UGUI & TextMesh Pro' started by z000z, Oct 20, 2020.

  1. z000z

    z000z

    Joined:
    Dec 31, 2014
    Posts:
    96
    I tried updating to 2020.1 and as part of that upgraded to TextMesh Pro 3.0.1 and noticed that some of our prefabs with TextMeshPro text components lost their font size settings. They get set to 36, my guess is that's a default size.

    I was able to reproduce the problem in a sample project with a simplified prefab consistently by loading it into 2020.1.0f1 (the only 2020.1 version that lets you swap TextMeshPro packages). In TextMesh Pro 3.0.0-preview1 it properly reads the font size in the prefab, but I you update to 3.0.1 it sets the font size to 36.

    I submitted a case 1286412 that you can use to see the issue.
     
    sp-LeventeLajtai likes this.
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,595
    Thank you for submitting a bug report on this.

    I have already resolved a similar case but will be checking against your report to make sure the fix also handles your case.

    I'll provide an update as soon as I can confirm the fix.
     
  3. z000z

    z000z

    Joined:
    Dec 31, 2014
    Posts:
    96
    @Stephan_B Sounds good, thanks for taking a look!