Search Unity

Question Text sometimes is rendered as little rectagles on Android

Discussion in 'UGUI & TextMesh Pro' started by LoopIssuer, Nov 23, 2022.

  1. LoopIssuer

    LoopIssuer

    Joined:
    Jan 27, 2020
    Posts:
    109
    I use TextMeshPro in ScrollView. Sometimes when I change VerticalLayout Top/Bottom padding from code, and the layout changes position on the screen, the font is rendered incorrectly (picture attached - white rectangles).
    Please tell me how to solve this issue?
    upload_2022-11-23_20-5-0.png
     

    Attached Files:

  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,596
    See if using one of the SSD shaders results in the text rendering correctly. SSD shaders are those with the suffix SSD in their names.

    If it does result in the text rendering correctly, then the issue is SDF Scaling related where for some reason the SDF Scale is not updated when you change the padding values. Does this somehow result in some scaling change of the text object or one of its parents?
     
  3. LoopIssuer

    LoopIssuer

    Joined:
    Jan 27, 2020
    Posts:
    109
    Thanks for your response. Solved - there was animation in code that changed scale from 0 to 1 in time=0; So sometimes font hadn't got time for render or sth like that.