# RectIntField

> Makes an X, Y, W, and H field for entering a RectInt.

## Definition

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

## RectIntField(Rect, RectInt)

Makes an X, Y, W, and H field for entering a [RectInt](/engine/6000.0/script-reference/unityengine/rectint.md).

```csharp
public static RectInt RectIntField(Rect position, RectInt value)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): Rectangle on the screen to use for the field.**** (\[RectInt]\(/engine/6000.0/script-reference/unityengine/rectint)): The value to edit.

### Returns

| Type                                                              | Description                    |
| ----------------------------------------------------------------- | ------------------------------ |
| [RectInt](/engine/6000.0/script-reference/unityengine/rectint.md) | The value entered by the user. |

## RectIntField(Rect, string, RectInt)

Makes an X, Y, W, and H field for entering a [RectInt](/engine/6000.0/script-reference/unityengine/rectint.md).

```csharp
public static RectInt RectIntField(Rect position, string label, RectInt value)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): Rectangle on the screen to use for the field.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Optional label to display above the field.**** (\[RectInt]\(/engine/6000.0/script-reference/unityengine/rectint)): The value to edit.

### Returns

| Type                                                              | Description                    |
| ----------------------------------------------------------------- | ------------------------------ |
| [RectInt](/engine/6000.0/script-reference/unityengine/rectint.md) | The value entered by the user. |

## RectIntField(Rect, GUIContent, RectInt)

Makes an X, Y, W, and H field for entering a [RectInt](/engine/6000.0/script-reference/unityengine/rectint.md).

```csharp
public static RectInt RectIntField(Rect position, GUIContent label, RectInt value)
```

### Parameters

**** (\[Rect]\(/engine/6000.0/script-reference/unityengine/rect)): Rectangle on the screen to use for the field.**** (\[GUIContent]\(/engine/6000.0/script-reference/unityengine/guicontent)): Optional label to display above the field.**** (\[RectInt]\(/engine/6000.0/script-reference/unityengine/rectint)): The value to edit.

### Returns

| Type                                                              | Description                    |
| ----------------------------------------------------------------- | ------------------------------ |
| [RectInt](/engine/6000.0/script-reference/unityengine/rectint.md) | The value entered by the user. |
