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.

2 Answers

2

Maybe this will help: Making a Scrollable Text Label in Unity 4.6 Tutorial - YouTube

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?

I simply wrote a script wich scales the input field with GetComponent().sizeDelta depending on amount of lines in the text. now it works.