Obfuscate TextField?

Does anyone know a quick way to obfuscate the text input in a GUI.textfield, for a password (for example)??

This can be done through iPhoneKeyboardType. I forget the exact type, but one of them is for passwords. You can find it in the scripting documentation.

great! thanks.
next question…

does anyone know how to change the keyboard type for a GUI.TextField?? Can you???

so I answered my own question…

GUI.PasswordField

thanks. me.

ha! I may have posted too early.

Cant seem to get the PasswordTextField to work…
getting this error…

(from reference)
passwordToEdit = GUI.PasswordField (Rect (10, 10, 200, 20), passwordToEdit, ‘*’, 25);

BCE0044: unexpected char: ‘’'.

Anyone get this working on iPhone??

I don’t recall correctly, and I’m not sure this is the issue, but I think in JS, to use this GUI you have to use something like (notice the way to handle the ‘*’ char):

passwordToEdit = GUI.PasswordField (Rect (10, 10, 200, 20), passwordToEdit, '*'[0], 25);

I don’t have Unity here to test it. Let me know if this works.