# SetContactEvents(bool)

> Enable/disable contact events on all shapes attached to the body. See PhysicsShape.contactEvents.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.LowLevelPhysics2D](/engine/6000.3/script-reference/unityengine/lowlevelphysics2d.md)
* **Assembly:** UnityEngine.Physics2DModule

```csharp
public void SetContactEvents(bool contactEvents)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Whether contact events are allowed on all shapes attached to this body or not.
