Question HELP WANTED > Multiline InputField

God

Active member
Messages
57
Reactions
218
Points
33
After googling and trial error for two days, I am about to kill my neighbour, as I cant find a proper way to make a InputField in csscript for a plugin multiline.

Adding this DOES allow enter linefeed and thus multiline, but it only shows one line at a time, in effect the actual input field is still only one line high, even if the UItext holder is set to ex 500 and the textbox shows as 500 its still only one line showing:

_textfield = textbox.gameObject.AddComponent<InputField>();
_textfield.lineType = InputField.LineType.MultiLineNewline;
textbox.height = 500;

Any wizard whom can save my neighbours life?
 
Back
Top Bottom