robot_2Generated
code_blocksInput

Description

The TriggerExit property of the TriggerActionComponent class is a delegate that is invoked when a collider exits the trigger area associated with this component. This property is part of the Sandbox.ActionGraphs namespace and is used to handle events related to collider triggers.

Note: This component is marked as obsolete. It is recommended to use Collider.OnTriggerEnter and Collider.OnTriggerExit for handling trigger events.

Usage

To use the TriggerExit property, assign a method that matches the TriggerDelegate signature to handle the event when a collider exits the trigger area. Ensure that the method is properly defined to handle the event logic.

Example usage:

TriggerActionComponent triggerComponent = new TriggerActionComponent();
triggerComponent.TriggerExit += OnTriggerExitHandler;

void OnTriggerExitHandler()
{
    // Logic to execute when a collider exits the trigger
}

However, it is recommended to transition to using Collider.OnTriggerExit for new implementations.

Example

TriggerActionComponent triggerComponent = new TriggerActionComponent();
triggerComponent.TriggerExit += OnTriggerExitHandler;

void OnTriggerExitHandler()
{
    // Logic to execute when a collider exits the trigger
}