triggerenter
("triggerenter", (TriggerPresentEvent) => void): this;
Emitted when the origin point of an object first enters the TriggerRegion.
Returns
this
Handler Function
When the triggerenter
event is fired, attached handler functions are called with a single argument, a TriggerPresentEvent.