Skip to content

EventAsset

ScriptableObject-based event for loosely-coupled communication between systems.

Namespace: Jungle.Events
Inherits: ScriptableObject

Overview

EventAsset is a shared ScriptableObject event channel. Multiple components can reference the same asset -- some call Raise() to broadcast, others call Register() to listen. This decouples producers from consumers without requiring direct references between them.

Methods

Method Description
Register(Action) Subscribe a listener callback.
Unregister(Action) Remove a previously registered listener.
Raise() Broadcast the event to all registered listeners.

See Also