# TestOverlapShapeProxy

> Test if the provided shape proxy overlaps any shapes.

## Definition

* **Type:** Method
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule

## TestOverlapShapeProxy(ShapeProxy, QueryFilter)

Test if the provided shape proxy overlaps any shapes.

```csharp
public bool TestOverlapShapeProxy(PhysicsShape.ShapeProxy shapeProxy, PhysicsQuery.QueryFilter filter)
```

### Parameters

**** (\[ShapeProxy]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsshape/shapeproxy)): The shape proxy to use. This must be in world-space.**** (\[QueryFilter]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsquery/queryfilter)): The filter to control the result returned.

### Returns

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

## TestOverlapShapeProxy(ReadOnlySpan\<ShapeProxy>, QueryFilter)

Test if the provided shape proxies overlaps any shapes.

```csharp
public bool TestOverlapShapeProxy(ReadOnlySpan<PhysicsShape.ShapeProxy> shapeProxies, PhysicsQuery.QueryFilter filter)
```

### Parameters

**** (\[ReadOnlySpan\<ShapeProxy>]\(https\://learn.microsoft.com/dotnet/api/system.readonlyspan-1)): The shape proxy to use. This must be in world-space.**** (\[QueryFilter]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsquery/queryfilter)): The filter to control the result returned.

### Returns

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