Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


skinWidth

Used when set to MeshCollider.inflateMesh to determine how much inflation is acceptable.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
Warning
Deprecated. MeshCollider.skinWidth is no longer used.
public float skinWidth { get; set; }

Remarks

Larger values will decrease the accuracy of the generated mesh. Smaller values may not allow PhysX to generate a convex mesh. The value must be larger than 0.