# DelayedIntField

> Makes a delayed text field for entering integers.

## Definition

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

## DelayedIntField(Rect, int, GUIStyle)

Makes a delayed text field for entering integers.

```csharp
public static int DelayedIntField(Rect position, int value, GUIStyle style)
```

### Parameters

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

### Returns

| Type                                                       | Description                                                                                                                                           |
| ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | 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 int field. |

### Remarks

Similar to [EditorGUI.IntField](/engine/6000.0/script-reference/unityeditor/editorgui/intfield.md) but will not return the new value until the user has pressed enter or focus is moved away from the int field.

## DelayedIntField(Rect, string, int, GUIStyle)

Makes a delayed text field for entering integers.

```csharp
public static int DelayedIntField(Rect position, string label, int value, GUIStyle style)
```

### Parameters

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

### Returns

| Type                                                       | Description                                                                                                                                           |
| ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | 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 int field. |

### Remarks

Similar to [EditorGUI.IntField](/engine/6000.0/script-reference/unityeditor/editorgui/intfield.md) but will not return the new value until the user has pressed enter or focus is moved away from the int field.

## DelayedIntField(Rect, GUIContent, int, GUIStyle)

Makes a delayed text field for entering integers.

```csharp
public static int DelayedIntField(Rect position, GUIContent label, int value, GUIStyle style)
```

### Parameters

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

### Returns

| Type                                                       | Description                                                                                                                                           |
| ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | 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 int field. |

### Remarks

Similar to [EditorGUI.IntField](/engine/6000.0/script-reference/unityeditor/editorgui/intfield.md) but will not return the new value until the user has pressed enter or focus is moved away from the int field.

## DelayedIntField(Rect, SerializedProperty, GUIContent)

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 int field.

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

### Parameters

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

### Remarks

Similar to [EditorGUI.IntField](/engine/6000.0/script-reference/unityeditor/editorgui/intfield.md) but will not return the new value until the user has pressed enter or focus is moved away from the int field.
