- Home /
Question by
sam111 · Aug 30, 2013 at 07:52 PM ·
text boxtext inputwriting to text
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?
thanks,
images.jpg
(23.6 kB)
Comment
Answer by ivan2532 · Aug 30, 2013 at 08:05 PM
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.
Answer by ash_05 · Jul 28, 2014 at 07:13 AM
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);
}
Your answer
Follow this Question
Related Questions
How do I remove this text box 1 Answer
How to make text appear for a few seconds. 0 Answers
Changing the text at the top of the window? 1 Answer
Writing in text box without selecting it? 1 Answer
Writing to text files 2 Answers