# DelayedTextField

> Makes a delayed text field.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

## DelayedTextField(Rect, string, GUIStyle)

Makes a delayed text field.

```csharp
public static string DelayedTextField(Rect position, string text, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the text field.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The value to edit.**** (\[GUIStyle]\(/engine/6000.5/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.5/script-reference/unityengine/guistyle.md).

### Returns

| Type                                                           | Description                                                                                                                                            |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The 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](/engine/6000.5/script-reference/unityeditor/editorgui/textfield.md) 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.

```csharp
public static string DelayedTextField(Rect position, string label, string text, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the text field.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Optional label to display in front of the int field.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The value to edit.**** (\[GUIStyle]\(/engine/6000.5/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.5/script-reference/unityengine/guistyle.md).

### Returns

| Type                                                           | Description                                                                                                                                            |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The 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](/engine/6000.5/script-reference/unityeditor/editorgui/textfield.md) 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.

```csharp
public static string DelayedTextField(Rect position, GUIContent label, string text, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the text field.**** (\[GUIContent]\(/engine/6000.5/script-reference/unityengine/guicontent)): Optional label to display in front of the int field.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The value to edit.**** (\[GUIStyle]\(/engine/6000.5/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.5/script-reference/unityengine/guistyle.md).

### Returns

| Type                                                           | Description                                                                                                                                            |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The 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](/engine/6000.5/script-reference/unityeditor/editorgui/textfield.md) 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.

```csharp
public static void DelayedTextField(Rect position, SerializedProperty property, GUIContent label)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the text field.**** (\[SerializedProperty]\(/engine/6000.5/script-reference/unityeditor/serializedproperty)): The text property to edit.**** (\[GUIContent]\(/engine/6000.5/script-reference/unityengine/guicontent)): Optional label to display in front of the int field. Pass [GUIContent.none](/engine/6000.5/script-reference/unityengine/guicontent/none.md) to hide label.

### Remarks

Similar to [EditorGUI.TextField](/engine/6000.5/script-reference/unityeditor/editorgui/textfield.md) 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.

```csharp
public static string DelayedTextField(Rect position, GUIContent label, int controlId, string text, GUIStyle style)
```

### Parameters

**** (\[Rect]\(/engine/6000.5/script-reference/unityengine/rect)): Rectangle on the screen to use for the text field.**** (\[GUIContent]\(/engine/6000.5/script-reference/unityengine/guicontent)): Optional label to display in front of the int field.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The value to edit.**** (\[GUIStyle]\(/engine/6000.5/script-reference/unityengine/guistyle)): Optional [GUIStyle](/engine/6000.5/script-reference/unityengine/guistyle.md).

### Returns

| Type                                                           | Description                                                                                                                                            |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [string](https://learn.microsoft.com/dotnet/api/system.string) | The 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](/engine/6000.5/script-reference/unityeditor/editorgui/textfield.md) but will not return the new value until the user has pressed enter or focus is moved away from the text field.
