Events & Communication
Headers: Core/include/Core/EventBus.h, Core/include/Core/Events.h
EventBus
The engine provides a publish/subscribe event system for communication between behaviors and systems:
Subscribing to Events
Warning
Store the SubscriptionID and unsubscribe when the behavior is destroyed to avoid dangling callbacks.
Publishing Events
Built-in Events
Custom Events
Define your own event structs for behavior-to-behavior communication: