- Home /
uGUI inputfield text truncates?
Is there a way to set the inputfield text to not truncate - ie when fed a long URL string via UI?
setting .characterLimit = 0 doesn't do the trick.
Hey! Were you able to solve this? Been racking my head all day but no luck
Answer by ForestRed · Dec 22, 2014 at 07:48 AM
Hi Ina. Try using the InputField component rather than the Text component of the UI.
Answer by Seye-Gamsole · Feb 05, 2016 at 02:51 AM
So far so good... I've been able to come up with a very UN-PRETTY solution. At least it gets the right text in the Input field:
Set the InputField Line Type to "Multi Line Submit"
Make sure the Horizontal Overflow of the Text in the Paragraph section is set to "Overflow"
And there you go, you should have something very ugly looking like this. alt text But really Unity should fix this. Think it might have something to do with the InputField.LineType class This solution works fine for me since I'm in debug mode.
Your answer
Follow this Question
Related Questions
Changing UGUI InputField keyboard appearance on iOS 2 Answers
Remove Focus From InputField 2 Answers
uGUI InputField not writeable 0 Answers