Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CookForFasterSimulation

Toggle between cooking for faster simulation or faster cooking time.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
CookForFasterSimulation = 2

Remarks

When set, this runs some extra steps to guarantee the resulting mesh is optimal for run-time performance. This affects performance of the physics queries as well as contacts generation. If not set, produces the result as fast as possible. Consequently, the cooked MeshCollider might not be optimal.