Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DelayedTextField

Makes a delayed text field.
Read time 3 minutesLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

DelayedTextField(Rect, string, GUIStyle)

Makes a delayed text field.
public static string DelayedTextField(Rect position, string text, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the text field.

text

The value to edit.

Optional GUIStyle.

Returns

Type

Description

stringThe value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the text field.

Remarks

Similar to EditorGUI.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.

DelayedTextField(Rect, string, string, GUIStyle)

Makes a delayed text field.
public static string DelayedTextField(Rect position, string label, string text, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the text field.

label

Optional label to display in front of the int field.

text

The value to edit.

Optional GUIStyle.

Returns

Type

Description

stringThe value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the text field.

Remarks

Similar to EditorGUI.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.

DelayedTextField(Rect, GUIContent, string, GUIStyle)

Makes a delayed text field.
public static string DelayedTextField(Rect position, GUIContent label, string text, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the text field.

Optional label to display in front of the int field.

text

The value to edit.

Optional GUIStyle.

Returns

Type

Description

stringThe value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the text field.

Remarks

Similar to EditorGUI.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.

DelayedTextField(Rect, SerializedProperty, GUIContent)

Makes a delayed text field.
public static void DelayedTextField(Rect position, SerializedProperty property, GUIContent label)

Parameters

position

Rectangle on the screen to use for the text field.

The text property to edit.

Optional label to display in front of the int field. Pass GUIContent.none to hide label.

Remarks

Similar to EditorGUI.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.

DelayedTextField(Rect, GUIContent, int, string, GUIStyle)

Makes a delayed text field.
public static string DelayedTextField(Rect position, GUIContent label, int controlId, string text, GUIStyle style)

Parameters

position

Rectangle on the screen to use for the text field.

Optional label to display in front of the int field.

controlId


text

The value to edit.

Optional GUIStyle.

Returns

Type

Description

stringThe value entered by the user. Note that the return value will not change until the user has pressed enter or focus is moved away from the text field.

Remarks

Similar to EditorGUI.TextField but will not return the new value until the user has pressed enter or focus is moved away from the text field.