Hi,
Can anyone tell me how to create simple user interface containing only a button and textbox
Hi,
Can anyone tell me how to create simple user interface containing only a button and textbox
void OnGUI() {
GUI.TextField(new Rect(Screen.width/2-150, 500, 600, 600),“text”);
if(GUI.Button(new Rect(Screen.width/2-50, 200, 200, 30), “button text”)){
//do somthing
}
this should help you