HasPreBakeCollisionMesh(bool)
Checks if collision mesh data of the specified type should be pre-baked during player build for all imported meshes.
Read time 1 minuteLast updated 13 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public bool HasPreBakeCollisionMesh(bool isConvex)
Parameters
True to check for convex collision mesh data, false to check for triangle collision mesh data.
Returns
Type | Description |
|---|---|
| bool | 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 component.
Additional Resources: ModelImporter.SetPreBakeCollisionMesh, MeshCollider.