# CreateProxy(PhysicsAABB, PhysicsMask, PhysicsHandle)

> Create a space proxy.

## Definition

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

```csharp
public PhysicsSpace.ProxyHandle CreateProxy(PhysicsAABB aabb, PhysicsMask categories, PhysicsHandle userHandle)
```

### Parameters

**** (\[PhysicsAABB]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsaabb)): The AABB the proxy covers.**** (\[PhysicsMask]\(/engine/6000.6/script-reference/unity/u2d/physics/physicsmask)): The categories as a physics mask associated with the proxy. This can be used when querying the space. If not used, it should be [PhysicsMask.All](/engine/6000.6/script-reference/unity/u2d/physics/physicsmask/all.md).**** (\[PhysicsHandle]\(/engine/6000.6/script-reference/unity/u2d/physics/physicshandle)): The custom user handle associated with the proxy.

### Returns

| Type                                                                                         | Description                                          |
| -------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| [ProxyHandle](/engine/6000.6/script-reference/unity/u2d/physics/physicsspace/proxyhandle.md) | The created proxy handle used to refer to the proxy. |
