A lightweight event bus system to be used in any Unity project. Event senders/subscribers stay fully decoupled. No setup needed, no external dependencies. Works out of the box.Event Bus Lite is a lightweight event system that allows to send/subscribe to events in a clean, decoupled way.The observer pattern is great for inter-class communication, but it can quickly become a mess when the project grows and references have to be passed between multiple event senders/subscribers. Event Bus Lite solves this problem by providing a single, centralized hub for your events, with several safety mechanisms. Senders/subscribers don't need to know about each other at all.The asset requires no special setup, just add it to your project and you can start exchanging events between your classes freely, avoiding unnecessary entanglement.Event Bus Lite exposes a simple, yet powerful API:1. Define your event (class, struct), implementing the IEvent interface. It can carry whatever data you need.2. Send the event using the static EventBusProvider.Broadcast().3. Subscribe to the event by implementing IEventSubscriber interface. Use the static EventBusProvider.Subscribe(), passing the method that will be called on receiving the event.4. Initialize the EventSubscriptionBin that will handle cleaning up of the subscription. Use the convenient extension method AddToSubscriptionBin() and Dispose() of the bin in OnDestroy() (or whenever you need).That's all! Quick, simple and safe.Look at the demo scripts and documentation to easily integrate the Event Bus Lite into your project.AI assistance was used in reviewing, testing and documenting the asset.




