# Equals

> Returns true if the given RectInt is equal to this RectInt.

## Definition

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

## Equals(Object)

Returns true if the given RectInt is equal to this RectInt.

```csharp
public override readonly bool Equals(object other)
```

### Parameters

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

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

## Equals(RectInt)

Returns true if the given RectInt is equal to this RectInt.

```csharp
public readonly bool Equals(RectInt other)
```

### Parameters

**** (\[RectInt]\(/engine/6000.7/script-reference/unityengine/rectint)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

## Equals(RectInt)

Returns true if the given RectInt is equal to this RectInt.

```csharp
public readonly bool Equals(in RectInt other)
```

### Parameters

**** (\[RectInt]\(/engine/6000.7/script-reference/unityengine/rectint)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |
