# contactEvents

> Controls whether this shape produces contact events which can be retrieved after the simulation has completed. Any contact events can be used to call the assigned _callbackTarget. A contact event is produced if either shapes involved have contactEvents enabled. A contact event will produce a PhysicsCallbacks.IContactCallback to the _callbackTarget for both shapes involved.

## Definition

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

```csharp
public bool contactEvents { get; set; }
```
