Collider.enabledvar enabled : booleanDescriptionEnabled Colliders will collide with other colliders, disabled Colliders won't. This is shown as the small checkbox in the inspector of the Colliders.
JavaScript
collider.enabled = false; using UnityEngine; import UnityEngine |
