- Home /
How do I make my label fit its text?
I am working on the credits for my mobile game and I have a license attribution thing at the end that is relatively long. On normal phone screen sizes it fits properly, but on notched phones, a big chunk of the end gets cut off and on tablets, there is a lot of empty space at the top and bottom. I had both the label and the content panel of the ScrollView for the credits set to the anchor preset which is anchored to the top of the parent but stretches horrizontally and I tried changing it so that they stretch vertically too and that did nothing. How do I make the text not get cut off or have a lot of extra space?
Answer by testmaster217 · Aug 19, 2020 at 01:39 AM
I eventually just clicked "Best Fit" on the text and now it fits properly. I was worried that it would look bad if it was a different size on different screens, but it doesn't seem to be a huge problem.
Answer by mohamadthaier2 · Aug 04, 2020 at 08:31 AM
Search for "Rect transform tutorial",Search for "Rect transofrm tutorial"
Your answer
Follow this Question
Related Questions
Unity 5 UI Text Glitch (illegible characters) 0 Answers
The variable has not been assigned error ? 0 Answers
Ngui: how to insert text on a label via javascript? 1 Answer
How to supersample TTF text of UI in 3D graphics scene? 0 Answers
World Space UI Scale To Fit Screen At DIfferent Aspect Ratios 1 Answer