- Home /
How to change Input Field 'Content Type' at runtime to toggle between asterisks and letters?
Hi all,
I have a password box set up in my project with the content type set to 'Password', so it shows asterisks when the user types in the box. However I would like a toggle switch so the user can click to show the password characters if they like, so effectively toggling between 'Password' and 'Standard' - is this possible? Any pointers would be appreciated.
Unity 5.3.5 - PC Standalone.
Thanks in advance.
Answer by Sergio7888 · Nov 14, 2016 at 09:49 PM
InputField have the contentType property.
See UI.InputField.ContentType for the possible values.
Your answer
Follow this Question
Related Questions
Is this a secure way to collect passwords? 3 Answers
How to make a login screen without input bar and without having to press enter on password field? 0 Answers
UI InputField does not consumer keyboard input 1 Answer
How can I disable the InputField Input Caret in Unity 5? 4 Answers
New gui: How to disable keyboard input when user is typing? 2 Answers