Question by
zingzingzingbah · Jan 04, 2017 at 12:07 PM ·
uitext
UI Input Field - text not wrapping
Hey everyone... so I've got an input field that I want to wrap, and eventually scroll I'll settle for wrapping at the moment.
Right now.. goes on and on and doesn't form a new line when it reaches the end of the text field.
In the inspector, The Input field object has Text and Placeholder objects - both of which have: horizontal overflow set to Wrap Vertical overflow set to Truncate
I've tried change them all. nothing happens
any help would be great! thanks!
Comment
Best Answer
Answer by pfreese · Jan 05, 2017 at 12:20 AM
You need to set the LineType for the InputField to one of the two multi-line types:
https://docs.unity3d.com/ScriptReference/UI.InputField.LineType.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612104032im_/https://answers.unity.com/themes/thub/images/avi.jpg)