# sleepingAllowed

> Set this flag to false if this body should never fall asleep.

## Definition

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

```csharp
public bool sleepingAllowed { readonly get; set; }
```
