- Home /
GUI.PasswordField display password while editing !!!
Hello,
I am developing game and i want password from user. So i have used GUI.PasswordField() for password field but some thing wrong when i tap on password field and i m trying to enter password t shows me what i m entering ... such a serious issue.
EDIT : My code for passwordField password = GUI.PasswordField (Rect (((Screen.width/2)-150), 320, 300, 50), password,"*"[0], 300);
This issue is occur in iPhone !!!
can anybody help me ????
Thanks in advance.
You should always post code when you're asking a code problem. How are we supposed to have the first idea of what's gone wrong if you don't show us?
http://docs.unity3d.com/Documentation/ScriptReference/GUI.PasswordField.html
I am using password = GUI.PasswordField (Rect (((Screen.width/2)-150), 320, 300, 50), password,"*"[0], 300);
Answer by iwaldrop · Feb 13, 2013 at 06:44 AM
This is a Unity issue. Here is some material related to it.
http://answers.unity3d.com/questions/55448/guilayoutpasswordfield-shows-whole-password-when-r.html http://forum.unity3d.com/threads/65337-GUI.PasswordField-issue (includes some solution code) http://answers.unity3d.com/questions/63057/password-field-shows-password-when-active-on-iphon.html
And if that doesn't help, keep looking.
And more on here ...
http://answers.unity3d.com/questions/438153/is-guipasswordfield-buggered-.html (includes some solution code)