- Home /
PasswordField help.
How would I make a GUI PasswordField that you need to type the correct password in before Application.LoadLevel activates? Any help would be appreciated! Thanks!
Answer by Graham-Dunnett · Mar 04, 2013 at 04:35 PM
See the example on this page:
http://docs.unity3d.com/Documentation/ScriptReference/GUI.PasswordField.html
It shows you how to make a password text entry box.
(If you mean, how does your code know that the correct password has been entered, then the answer depends completely on how secure you need your system to be. If you do not need security, then just compare the response from the PasswordField with the password string. If it needs to be more secure, then use an MD5 hash of the password, and compare that with a hard coded MD5 hash. If you need yet more security, then take a look at this site.)
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
Setting Scroll View Width GUILayout 1 Answer
Mouse ignore object 2 Answers
Two Unity GUI questions 2 Answers
How to make a monolgue? 1 Answer