Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
|collider2||Another collider you want to have
|ignore||Whether or not the collisions between the two colliders should be ignored or not.|
Makes the collision detection system ignore all collisions between
This is useful, say, for preventing projectiles from colliding with the object that fires them.
Note that IgnoreCollision is not persitent. This means ignore collision state will not be stored in the editor when saving a scene.
ignore is false, collisions can occur. Set
ignore to true to ignore collisions.
See Also: Physics.IgnoreLayerCollision.