Rigidbody2D.sleepMode
var sleepMode: RigidbodySleepMode2D;
sleepMode as RigidbodySleepMode2D
Description

The sleep state that the rigidbody will initially be in.

Sleeping is an optimisation that is used to temporarily remove an object from physics simulation when it is at rest. This property chooses whether the rigidbody should start off asleep, awake or have sleeping turned off altogether.

See Also: Sleep, isSleeping, WakeUp, Rigidbody.Sleep.