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

static function TextField (position : Rect, text : string, style : GUIStyle = EditorStyles.textField) : string

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

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

Parameters

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

Returns

string - The text entered by the user.

Description

Make a text field.

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