- Home /
Password field shows password when active on iPhone
Hi!
I'm trying to make a Twitter login with the below code but when the user clicks on the password field the entire password is shown instead of the *'s. Once they click done on the iOS input box then it shows as stars but how do I get it to constantly show as stars in the field within Unity (not just the iOS input field).
passwordToEdit = GUI.PasswordField (Rect (218, 234, width, buttonHeight), passwordToEdit, "*"[0], 25);
Thanks!
Answer by bournifle · Feb 10, 2012 at 01:45 PM
Hi,
see here for a similar question: http://answers.unity3d.com/questions/55448/guilayoutpasswordfield-shows-whole-password-when-r.html
and here for a workaround I found for this bug (4th post): http://forum.unity3d.com/threads/65337-GUI.PasswordField-issue
Your answer
Follow this Question
Related Questions
The New Google Cardboard Button Input? 0 Answers
Touching left or right side of iPhone screen? 2 Answers
Working with Touch screens... 1 Answer
Joystick / Button 3 Answers
Ray error with touches.position 1 Answer