Documentation

Unity Engine

Unity Engine

EnableMeshCleaning

Toggle cleaning of the mesh.
Read time 1 minuteLast updated a month ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
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.