I know that you can disable certain Layers in script by calling Physics.IgnoreLayerCollision (layer1, layer2). But I can’t seem to figure out how to enable them back. I’ve tried the Physics.GetIgnoreLayerCollision (layer1, layer2), but that didn’t seem to work. Any ideas?
Never mind I figured it out. Didn’t realize you can set a bool true/false like so for anyone who is wondering about this:
Physics.IgnoreLayerCollision (layer1, layer2, true)
Physics.IgnoreLayerCollision (layer1, layer2, false)