# EnableMeshCleaning

> Toggle cleaning of the mesh.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.PhysicsModule

```csharp
EnableMeshCleaning = 4
```

### Remarks

When set, the cooking will try to eliminate degenerate triangles of the mesh as well as other geometrical artifacts. It results in a mesh that is better suited for use in collision detection and tends to produce more accurate hit points.
