Event that runs on a trigger, when an object enters the trigger’s area.
Appearance in Composition Pane
Codeblocks below the when trigger is entered by object line will execute when an object enters the trigger. The trigger must be configured to detect objects with a specific tag, and the object must have that tag. The script should then be attached to the trigger, otherwise you can use connect to or listen to, to receive events from the trigger.
A reference to the object that entered the trigger gizmo.
Example 1: Paint an object
This paints the object that entered the trigger red.