# PhysicsCallbacks.ContactCallbackTargets

> Contains all the contact callback targets returned from PhysicsWorld.GetContactCallbackTargets.

## Definition

* **Type:** Struct
* **Namespace:** [Unity.U2D.Physics](/engine/6000.6/script-reference/unity/u2d/physics.md)
* **Assembly:** UnityEngine.PhysicsCore2DModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public readonly struct PhysicsCallbacks.ContactCallbackTargets : IDisposable
```

## Properties

| Property                                                                                                                                  | Description        |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------ |
| [BeginCallbackTargets](/engine/6000.6/script-reference/unity/u2d/physics/physicscallbacks/contactcallbacktargets/begincallbacktargets.md) | The begin targets. |
| [EndCallbackTargets](/engine/6000.6/script-reference/unity/u2d/physics/physicscallbacks/contactcallbacktargets/endcallbacktargets.md)     | The end targets.   |

## Methods

| Method                                                                                                          | Description                                                                                                         |
| --------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| [Dispose](/engine/6000.6/script-reference/unity/u2d/physics/physicscallbacks/contactcallbacktargets/dispose.md) | Dispose of any allocated memory. This must be called if any targets are returned otherwise memory leaks will occur. |

## Structs

| Struct                                                                                                                                                                       | Description                               |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
| [PhysicsCallbacks.ContactCallbackTargets.ContactBeginTarget](/engine/6000.6/script-reference/unity/u2d/physics/physicscallbacks/contactcallbacktargetscontactbegintarget.md) | Contact begin event target for callbacks. |
| [PhysicsCallbacks.ContactCallbackTargets.ContactEndTarget](/engine/6000.6/script-reference/unity/u2d/physics/physicscallbacks/contactcallbacktargetscontactendtarget.md)     | Contact end event target for callbacks.   |
