# Overlaps

> RectInts overlap if each RectInt RectInt.Contains a shared point.

## Definition

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

## Overlaps(RectInt)

RectInts overlap if each RectInt [RectInt.Contains](/engine/6000.7/script-reference/unityengine/rectint/contains.md) a shared point.

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

### Parameters

**** (\[RectInt]\(/engine/6000.7/script-reference/unityengine/rectint)): Other rectangle to test overlapping with.

### Returns

| Type                                                          | Description                                    |
| ------------------------------------------------------------- | ---------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the other rectangle overlaps this one. |

## Overlaps(RectInt)

RectInts overlap if each RectInt [RectInt.Contains](/engine/6000.7/script-reference/unityengine/rectint/contains.md) a shared point.

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

### Parameters

**** (\[RectInt]\(/engine/6000.7/script-reference/unityengine/rectint)): Other rectangle to test overlapping with.

### Returns

| Type                                                          | Description                                    |
| ------------------------------------------------------------- | ---------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | True if the other rectangle overlaps this one. |
