EditorGUILayout.PasswordFieldstatic function PasswordField (password : String, params options : GUILayoutOption[]) : Stringstatic function PasswordField (password : String, style : GUIStyle, params options : GUILayoutOption[]) : Stringstatic function PasswordField (label : String, password : String, params options : GUILayoutOption[]) : Stringstatic function PasswordField (label : String, password : String, style : GUIStyle, params options : GUILayoutOption[]) : Stringstatic function PasswordField (label : GUIContent, password : String, params options : GUILayoutOption[]) : Stringstatic function PasswordField (label : GUIContent, password : String, style : GUIStyle, params options : GUILayoutOption[]) : StringParameters
ReturnsString - The password entered by the user. DescriptionMake a text field where the user can enter a password. This works just like GUILayout.PasswordField, but correctly responds to select all, etc. in the editor, and it can have an optional label in front.
// Editor Script that creates a password field and lets you visualize what have you // typed in a label. class EditorGUILayoutPasswordField extends EditorWindow { var text : String = "Some text here"; @MenuItem("Examples/Editor Password field usage") static function Init() { var window = GetWindow(EditorGUILayoutPasswordField); window.Show(); } function OnGUI() { text = EditorGUILayout.PasswordField("Type Something:",text); EditorGUILayout.LabelField("Written Text:", text); } }
|

