# RectInt

> Creates a new RectInt.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine](/engine/6000.5/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

## RectInt(int, int, int, int)

Creates a new RectInt.

```csharp
public RectInt(int xMin, int yMin, int width, int height)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The minimum X value of the RectInt.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The minimum Y value of the RectInt.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Width of the rectangle.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Height of the rectangle.

## RectInt(Vector2Int, Vector2Int)

Creates a new RectInt.

```csharp
public RectInt(Vector2Int position, Vector2Int size)
```

### Parameters

**** (\[Vector2Int]\(/engine/6000.5/script-reference/unityengine/vector2int)): The position (x, y) of the rectangle.**** (\[Vector2Int]\(/engine/6000.5/script-reference/unityengine/vector2int)): The width (x) and height (y) of the rectangle.

## RectInt(Vector2Int, Vector2Int)

Creates a new RectInt.

```csharp
public RectInt(in Vector2Int position, in Vector2Int size)
```

### Parameters

**** (\[Vector2Int]\(/engine/6000.5/script-reference/unityengine/vector2int)): The position (x, y) of the rectangle.**** (\[Vector2Int]\(/engine/6000.5/script-reference/unityengine/vector2int)): The width (x) and height (y) of the rectangle.
