GUI Input Issue

Hi all, i’ve recently played around with Smartfox S2 and tweaked a sample GUI off of theirs. Coding wise… I didnt change a drastic amount. Everything was working well until I tried to line up the GUI layout. I reverted back to what I had and im still having the same issue… Which leads me to the issue :slight_smile:

I am unable to “type” anything in the Username and Password fields. I’m able to change the IP and Port just fine, its only the Username and Password fields that I cannot type in. Im able to select the entry field… a cursor DOES appear, but no typing when keys are pressed.

Ive ripped this coding apart and im simply not seeing it.

Any suggestions? Thanks!!

Probably you’re not assigning the results of the textfields back to a variable.

–Eric

Thanks.

If figured it out. Based off of what you said, I investigated that portion of code again, and boiled it down to a simple typo.

GUI.Label(new Rect(10, 90, 100, 100), "Username: ");
username = GUI.TextField(new Rect(100, 90, 200, 20), username, 25);

GUI.Label(new Rect(10, 115, 100, 100), "Password: ");
-------> username = GUI.TextField(new Rect(100, 115, 200, 20), pass, 25);

GUI.Label(new Rect(10, 90, 100, 100), "Username: ");
username = GUI.TextField(new Rect(100, 90, 200, 20), username, 25);

GUI.Label(new Rect(10, 115, 100, 100), "Password: ");
fix -----> pass = GUI.TextField(new Rect(100, 115, 200, 20), pass, 25);