Question by
Fragmental · Aug 24, 2016 at 01:45 AM ·
uitextureinputfieldlayoutlabel
Is there anyway to make an input field stretch to fit a body of text?
So, I have a Panel with a Horizontal layout group script, and a Label that is a child of that Panel with a Layout Element with flexible width and height. This causes the Label's Panel to fit the size of the text. I want to be able to edit that text so I have a separate Panel with an Input Field.
I have a script that assigns the the Text of the Label to the Text parameter of the Input Field during Void Start(). I would like the field to stretch vertically so that the text could be seen in it's entirety within the Field, just as I do with the original Text in the Label. Is this possible?
Comment