Component reference
Physics components
Trigger component
5 min
description the trigger component allows you to detect when entities enter or exit a collider's area and perform actions in response requirements a trigger component requires a collider component docid\ cambzwpv0lphvf2oeuwj0 (which in turn requires a rigidbody component docid 8dhcj9 ryicubudau9q5r ) to function properties property description target object the entity that will be affected or receive the action when the trigger is activated on enter the action or event to execute when an entity enters the trigger's collider on exit the action or event to execute when an entity exits the trigger's collider usage notes to set up a trigger, add the trigger component to an entity with a valid collider assign a target object by dragging the desired entity from the hierarchy into the target object field select actions for on enter and on exit from the available options, which depend on the target object's components actions include setvisible and setinvisible important details ensure that the collider is properly set up and that the trigger's area covers the space where you want the interaction to occur