# RectOffset

> Creates a new rectangle with offsets.

## Definition

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

## RectOffset()

Creates a new rectangle with offsets.

```csharp
public RectOffset()
```

## RectOffset(int, int, int, int)

Creates a new rectangle with offsets.

```csharp
public RectOffset(int left, int right, int top, int bottom)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): **** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)):&#x20;
