# Sandbox.Rect.Overlaps

```csharp
bool Overlaps(in Rect rect)
```

Return true if the two rects share any area. Rects that only touch along an edge do not overlap.

### Parameters

- `in rect` (`Rect`)

### Returns

`bool`

Declared in [Sandbox.Rect](/api/Sandbox.Rect).
Assembly: `Sandbox.System`.
