Search Unity

Bug TextMeshPro, ContentSizeFitter can't work well

Discussion in 'UGUI & TextMesh Pro' started by YiXinLu, Jan 6, 2023.

  1. YiXinLu

    YiXinLu

    Joined:
    Apr 12, 2018
    Posts:
    2
    unity 2019.4.37f1
    I move the border and trigger text wrapping, but the height of the text doesn't change correctly when I use ContentSizeFitter(Vertical Fit Preferred Size).
    upload_2023-1-6_14-15-50.png
    upload_2023-1-6_14-19-7.png
    ContentSizeFitter works well, upload_2023-1-6_14-15-50.png upload_2023-1-6_14-18-49.png
    try stretching the width, then here is one line missing when calculating the height.
     
  2. YiXinLu

    YiXinLu

    Joined:
    Apr 12, 2018
    Posts:
    2
    upload_2023-1-6_14-38-40.png
    here is the text, two line