# Vector2IntField

> Makes an X and Y integer field for entering a Vector2Int.

## Definition

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

## Vector2IntField(Rect, string, Vector2Int)

Makes an X and Y integer field for entering a [Vector2Int](/engine/6000.0/script-reference/unityengine/vector2int.md).

```csharp
public static Vector2Int Vector2IntField(Rect position, string label, Vector2Int 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)): Label to display above the field.**** (\[Vector2Int]\(/engine/6000.0/script-reference/unityengine/vector2int)): The value to edit.

### Returns

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

## Vector2IntField(Rect, GUIContent, Vector2Int)

Makes an X and Y integer field for entering a [Vector2Int](/engine/6000.0/script-reference/unityengine/vector2int.md).

```csharp
public static Vector2Int Vector2IntField(Rect position, GUIContent label, Vector2Int 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)): Label to display above the field.**** (\[Vector2Int]\(/engine/6000.0/script-reference/unityengine/vector2int)): The value to edit.

### Returns

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