Collider.isTriggervar isTrigger : booleanDescriptionIs the collider a trigger? A trigger doesn't collide with rigid bodies. Instead it sends OnTriggerEnter, OnTriggerExit and OnTriggerStay message when a rigidbody enters or exits the trigger.
JavaScript
// Turns the attached to collider into a trigger. using UnityEngine; import UnityEngine |
