So for my project I working something where if the user presses a button, all rigidbodies and colliders will be disabled for every object in the scene. Is there a way to do that? I can’t figure it out. I searched everywhere on unity and internet. Any help would be greatly appreciated!
This is how I resolved it:
I made all the objects a child of a empty gameobject. I used getcomponentsofchildren to get them an disable or enable them. So I got the rigidbodies and did rigidbody.isKinematic true or false. That is what I did to resolve it.