- Home /
Question by
Balorth · Feb 25, 2011 at 02:57 PM ·
loginregistration
Registration script
I'm pretty new to unity,I just started using it this year in my game design class at our career center.My team is making a game and I am having trouble finding a script that i can use to have someone signup and login in a GUI box.It would be nice if someone could provide this for me to use.I am running the 2.6 version.
Comment
Answer by efge · Feb 25, 2011 at 03:50 PM
You could use GUI.TextField, e.g.:
function OnGUI() {
GUI.Label(Rect(10, 116, 100, 100), "Username: ");
username = GUI.TextField(Rect(100, 116, 200, 20), username, 25);
if ( GUI.Button(Rect(100, 166, 100, 24), "Login") {
// ...
}
}
Your answer
Follow this Question
Related Questions
Email verification based registration 3 Answers
How to do established connection between Unity game and node.js after logging in? 0 Answers
Mysql PDO Register user insert not inserting, no error feedback 0 Answers
Saving username using InputField and PlayerPrefs 1 Answer
IOS trial version register problem 1 Answer