# Overlaps(Rect)

> Check if edge overlaps rectangle.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Experimental.GraphView](/engine/6000.3/script-reference/unityeditor/experimental/graphview.md)
* **Assembly:** UnityEditor

```csharp
public override bool Overlaps(Rect rect)
```

### Parameters

**** (\[Rect]\(/engine/6000.3/script-reference/unityengine/rect)): The rectangle.

### Returns

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