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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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