My new enemy: Bitverse Gui Password Field
Looks like everything goes fine and it really simplifies most of the issues with coding the GUI from zero and blah blah blah but... Once I needed to validate my GUI Password Field it results that instead of masking the password outside, it also masks inside.
In other words, when I needed to get the password of the passwordfield I though coding: "pwdField.text" would get the usual password but.. Oh surprise! I got it masked like: "*****" Â And then I spent like 3 hours of my life guessing if there was another method to find out this password beneath... And guess what... it wasn't!
So that's when I got really angry with that.. Guess at the end I'm going back to the oldschool GUI that it works! (Maybe for this window only)
So guys, If you plan to use "bitverse password field" and you need the information beneath (I mean the password) you'd better use GUI.PasswordField.
Here I leave an example of the GUI.PasswordField in C#:
using UnityEngine; using System.Collections; public class example : MonoBehaviour { public string passwordToEdit = "Password"; void OnGUI() { passwordToEdit = GUI.PasswordField(new Rect(10, 10, 200, 20), passwordToEdit, "*"[0], 25); } }
C ya then!!!Â
















