Since I am adding items to a scroll list I want them to be as long as required so is there no built in option to make the RectTransform of a Text Mesh Pro UGUI label increase in height as required to fit the text within?
i.e. no overflow, no truncation, just enlarge area!
Edit: OK you can add a Content Size Fitter component but it complains about being in a layout group - a common Unity UI problem
I am not exactly sure what you want to achieve, but this tutorial could get you on the right track.
If you want to follow this tutorial, make sure to tick both boxes for “Control Child Size” (@1:38).
I used this tutorial multiple times already. Just make sure to also tick both boxes for “Control Child Size” @1:38. That should be all that you need to take care of, to have everything working like shown in the video.
This works so well! I have been searching for this and this is the only thing that has worked. I am using it on a Scroll Rect, and I am using code to change what the text says, I personally have to set the min height really high, as it’s acting more as somewhat of a max height. Idk if it said that, or I was just bad and missed it, but this worked very well for me.