EditorGUI.PasswordField Manual     Reference     Scripting  
Scripting > Editor Classes > EditorGUI
EditorGUI.PasswordField

static function PasswordField (position : Rect, password : string, style : GUIStyle = EditorStyles.textField) : string

static function PasswordField (position : Rect, label : string, password : string, style : GUIStyle = EditorStyles.textField) : string

static function PasswordField (position : Rect, label : GUIContent, password : string, style : GUIStyle = EditorStyles.textField) : string

Parameters

NameDescription
position Rectangle on the screen to use for the password field.
label Optional label to display in front of the password field.
password The password to edit.
style Optional GUIStyle.

Returns

string - The password entered by the user.

Description

Make a text field where the user can enter a password.

This works just like GUI.PasswordField, but correctly responds to select all, etc. in the editor, and it can have an optional label in front.