- Home /
Dynamic TextBox problem
I am having trouble trying to create textboxes that can be of any size depending on the amount of text and having it fit properly in the contents of a scroll view.
Using "Best Fit" for Text objects does not work because it resizes the text which is not what I want.
Using "Overflow" for Text objects also does not work because new Text objects added to the contents afterwards will overlap with the older Text objects
I have already tried this solution with no luck https://answers.unity.com/questions/1339279/dynamic-textbox-with-ui.html by putting a CSF and VLG onto the "Content" object as shown here: https://i.imgur.com/GhukkJo.png
Answer by FZ_Applications · Jun 30, 2019 at 09:23 AM
I strongly suggest using Text Mesh Pro's input fields and enable autosize there.
Is there any self-sufficient solution? I don't want to download anything from the asset store.
Its freely available and in the package manager.
Your answer
![](https://koobas.hobune.stream/wayback/20220612204052im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to scale UI elements smaller so they can fit onto panel when increased in number. 1 Answer
uGUI Vertical Layout Group stretching objects 2 Answers
Question regarding VerticalLayout - list is not populating correctly except during Start()! 0 Answers
How can I make Horizontal Layout Group starts from right to left? 4 Answers
Layout Group not working when instantiate from prefab 1 Answer