- Home /
The question is answered
How do I disable all rigidbodies and colliders in a scene in unity?
Hi everybody, 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!
Indicating how you have resolved your problem could help someone else....
Answer by A-K-Games · Jul 13, 2016 at 09:34 PM
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.
smart. ive been having similar difficulty... i cant use hinges without rigidbodies, but if i use rigidbodies, then i cant use colliders... but i need colliders to keep objects from falling thru each other
whats the way to have both colliders and rigidbody?