# PhysicsEditorMeshExtensions

> Extension methods for the Mesh class to configure pre-baked collision data.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static class PhysicsEditorMeshExtensions
```

## Remarks

This class provides extension methods that allow you to control whether collision data should be pre-baked into mesh assets during player builds. Pre-baking collision data improves runtime performance when meshes are used with [MeshCollider](/engine/6000.7/script-reference/unityengine/meshcollider.md) components.

## Static Methods

| Method                                                                                                                        | Description                                                                   |
| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| [HasPreBakeCollisionMesh](/engine/6000.7/script-reference/unityeditor/physicseditormeshextensions/hasprebakecollisionmesh.md) | Checks whether the mesh should pre-bake collision data during a player build. |
| [SetPreBakeCollisionMesh](/engine/6000.7/script-reference/unityeditor/physicseditormeshextensions/setprebakecollisionmesh.md) | Enables or disables pre-baked collision data for this mesh.                   |
