- Home /
Duplicate Question
Making program like terminal and using input field
Hi guys i need help, i'm making simple terminal, i'm using method with input field but i don't know how to make when i type something what i want, some command and the program(terminal) write something, i don't know how to use console.writeline and readline something like that in unity, is there way how to do that ? Please help, thanks.
Answer by Andres-Fernandez · Aug 20, 2015 at 06:28 AM
The InputField object can be your input (your read line). You need to set the field End Edit to a function to read the value of the input. Your output can be a simple Text element. How would it work? Whenever the input function is fired, pass the input through a parser and send the response to the Text output.
I suggest you have a look at the docs here. SPecifically here and here (and of course the linked doc pages about the input field and the text element). Also the API reference for the text and input field.
Follow this Question
Related Questions
Compiling with Terminal 1 Answer
Why does Build Report Log miss 50% in filesize count? 1 Answer
Blocking and retrieving user keyboard input 0 Answers
How i can create 80x25 terminal-like text grid? 0 Answers
packaging my .app 1 Answer