How to make textbox?

hello,

I am making online game in c# and i want to make text box to log in like this box in picture ,so how to make it? [14897-images.jpg |14897]

thanks,

Hello sam11, you should use GUI.TextField. Take a look at Unity Script Reference, you should uderstand how to create it if you read it carefully.

Ivan.

Here is the code to create textbox

public string Email;

	public string password;
	
	void OnGUI()
	{
		Email = GUI.TextArea (new Rect (300,292, 150, 20), email);
		 password= GUI.TextArea (new Rect (25, 25, 100, 30), password);
	}