Collider.enabled property

Returns the enabled state of the rigidbody

Signature:

get enabled(): boolean;
 
set enabled(enabled: boolean);