Question by
morgan5814 · Oct 11, 2016 at 03:18 AM ·
c#textfield
Input not updating on user input
I'm creating the login method and working on my whole creation and the issue I currently have is that the input is not accepting what the user types =/. My GUI is Created with
I can update using the fields in the inspector, but if I try to type in the actual GUI it doesn't do anything.
error.png
(359.7 kB)
Comment
Best Answer
Answer by Namey5 · Oct 11, 2016 at 11:28 AM
Try replacing
GUI.TextField (new Rect (328, 213, 155, 25), UsernameInput);
GUI.TextField (new Rect (328, 280, 155, 25), PasswordInput);
with
UsernameInput = GUI.TextField (new Rect (328, 213, 155, 25), UsernameInput);
PasswordInput = GUI.TextField (new Rect (328, 280, 155, 25), PasswordInput);
Thank you. I was trying to wait until I got stuck to come here to ask for help, but that was holding up trying quite a few scripts!
Your answer
Follow this Question
Related Questions
Change font size of drawn Textbox. 1 Answer
Replacing a selected part of string in a GUI.Textfield 1 Answer
Storing input to array 1 Answer
How to change GUI textfield using OnMouseOver script 0 Answers
unexpecited change with my list 0 Answers