robot_2Generated
code_blocksInput

Description

The TriggerEnter property of the TriggerActionComponent class is a delegate that is invoked when a collider enters the trigger area of the component. This property is part of the Sandbox.ActionGraphs namespace and is used to handle events related to trigger entry.

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

Usage

To use the TriggerEnter property, assign a method that matches the TriggerDelegate signature to handle the trigger entry event. Ensure that the method is capable of processing the event data appropriately.

Example usage:

TriggerActionComponent triggerComponent = new TriggerActionComponent();
triggerComponent.TriggerEnter += OnTriggerEnterHandler;

void OnTriggerEnterHandler(Collider other)
{
    // Handle the trigger entry event
}

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

Example

TriggerActionComponent triggerComponent = new TriggerActionComponent();
triggerComponent.TriggerEnter += OnTriggerEnterHandler;

void OnTriggerEnterHandler(Collider other)
{
    // Handle the trigger entry event
}