I am planning to do logging and registration. But I have a problem. I can't make the password InputField became like ***** (censored).
And maybe it wouldn't affect your answers but my game will be on the android platform.
Thank you.
I am planning to do logging and registration. But I have a problem. I can't make the password InputField became like ***** (censored).
And maybe it wouldn't affect your answers but my game will be on the android platform.
Thank you.
Just use a EditText
and set its inputType="textPassword
Herr is also an example to do so: http://www.mkyong.com/android/android-password-field-example/
Try something like
public string thePassword = "12345";
void OnGUI()
{
passwordToEdit = GUI.PasswordField(new Rect(10, 10, 200, 20),
passwordToEdit, "*"[0], 25);
}
What about using InputField of the new UI ? You can set the content to Password:
Doc:
http://docs.unity3d.com/es/current/Manual/script-InputField.html
© 2022 - 2024 — McMap. All rights reserved.