Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


sleepingAllowed

Controls if bodies go to sleep when not moving and not interacting. Sleeping can provide a significant performance improvement when many Dynamic or Kinematic bodies are in the world. See PhysicsWorld.sleepingAllowed
Read time 1 minuteLast updated 13 days ago

Definition

public bool sleepingAllowed { readonly get; set; }