Fixed it question unanswered
InputField not able to hold long text
I'm programming a game where you can build bots and write their behavíour in js code. My problem with that is, that the Inputfield just gets buggy if I write over about 10 lines of code. instead of getting to the next line when I press enter, the caret just jumps Forward like with tab and I can no longer see what I'm typing. Please help me
This is a bug. It's kind of well known.
I'd submit a bug report, or find and upvote it on the Feedback, or the Issue Tracker.
Answer by Zodiarc · Nov 04, 2016 at 10:59 AM
Maybe this will help: https://www.youtube.com/watch?v=5XJBBWI2F0I
I'm guessing that a simple text input field isn't enough. You need some kind of textarea
That Video isn't helping sorry. Do you know how I could write my own inpu field?
Answer by Timo_Ho · Dec 10, 2016 at 02:23 PM
I simply wrote a script wich scales the input field with GetComponent().sizeDelta depending on amount of lines in the text. now it works.