# HasPreBakeCollisionMesh(bool)

> Checks if collision mesh data of the specified type should be pre-baked during player build for all imported meshes.

## Definition

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

```csharp
public bool HasPreBakeCollisionMesh(bool isConvex)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): True to check for convex collision mesh data, false to check for triangle collision mesh data.

### Returns

| Type                                                          | Description                                                                                            |
| ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the specified collision type should be pre-baked during player build, false otherwise. |

### Remarks

This method allows you to query whether convex or triangle collision mesh data will be pre-baked during player build for all the imported meshes of that model. Pre-baked collision mesh data improves runtime performance when the mesh is used with a [MeshCollider](/engine/6000.7/script-reference/unityengine/meshcollider.md) component.

Additional Resources: [ModelImporter.SetPreBakeCollisionMesh](/engine/6000.7/script-reference/unityeditor/modelimporter/setprebakecollisionmesh.md), [MeshCollider](/engine/6000.7/script-reference/unityengine/meshcollider.md).
