hey guys, firstly soz for the confusing titles, basically im emulation a login screen because… well im bored and its good practise, so i was just wondering if its possible to make it so that what ever key i type in the password becomes an * to hide the pass, ill post what i got below… cheers
var login = "Enter Your Username";
var username = "matt";
var Entereduser = false;
var password = "admin";
var LogPass = "password";
function OnGUI () {
login = GUI.TextField (Rect (10, 10, 200, 20), login, 25);
LogPass = GUI.TextField (Rect (10,30,200,20), LogPass, 25);
}
function Update () {
if(login == username LogPass == password Input.GetKeyDown("return")) {
print ("you logged in");
}
if(Input.GetKeyDown("return") login != username) {
print ("you entered an invalid username or password");
Entereduser = false;
}
if(Input.GetKeyDown("return") LogPass != password) {
print ("you entered an invalid username or password");
}
}