Skip to main content
100%

Gist 1ac3ec54b81ccb1992192549bf25cff4

✓ Published0🌍 Public
Aandybak
Last edited Jun 12, 2019
Created on Jun 12, 2019

This example demonstrates a minimal Unity event system triggered by collision detection. A MonoBehaviour script, EventTest, exposes a public Collider field and a UnityEvent. When another collider enters the assigned trigger zone, the OnTriggerEnter callback invokes the UnityEvent, allowing linked responses in the Inspector. The code relies on UnityEngine.Collider and UnityEngine.Events.UnityEvent, showing how Unity’s built-in event and trigger APIs connect gameplay logic without custom messaging.

AI-generated description

Similar vizzes