void OnGUI () {
GUILayout.BeginArea(new Rect(screenW / 4, 100, screenW / 2, screenH /
if(GUILayout.Button(“Change the Server’s IP”)){
//set a user-defined ip address for client to connect
//the default ip is ethernet jack B48 in the CSL lab.
Log.Debug(“reached”);
MyClient.strIP = GUI.TextField(new Rect(screenW/2 - 150, screenH/2 - 75, 300, 150), MyClient.strIP, 15);
}
GUILayout.EndArea();
}
The textfield does not show up after click the button. but console does print “reached” which indicates the button click event is handled. So whats wrong with my code then?
Thank you in advance!