{"repo":"NullTale/UnityEventBus","free":true,"listed":false,"github":"https://github.com/NullTale/UnityEventBus","clone":"git clone https://github.com/NullTale/UnityEventBus.git","description":"⚙ Generic Unity event system (event bus pattern)","language":"C#","stars":45,"topics":["publisher-subscriber","observer-pattern","event-dispatcher","unity","event","event-management","event-system","event-listener","event-emitter","eventbus"],"license":"MIT","category":"game-templates","readme_excerpt":"Description Designed to be easy to use, extendable and optimized where it's possible. An EventBus is a mechanism that allows different components to communicate with each other without knowing about each other. A component can send an Event to the EventBus without knowing who will pick it up or how many others will pick it up. Features - interface based - listeners priority sorting - ability to send functions and messages - local buses creation with the ability to subscribe as a listener - timeline compatibility - filtered messaging - expandability Minimal usage example Installation Through Unity Package Manager git URL: Or copy-paste somewhere inside your project Assets folder. Table of Content Event Listener Event Bus Extentions + Action + Event + Signals + Request Event Listener On OnEnable event Listener will connect to the desired bus and will start receiving messages from it. In the unity editor, you can set up the behavior in detail. Such as subscription targets and priority. Note: Lower priority triggers first, highest last, equal invokes in order of subscription To create your custom listener you need to implement at least one IListener< interface and subscribe to the desired bus. Note: Listener can have any number of IListener< interfaces. You can also implement ISubscriberOptions interface to setup debug name and listener priority. Event Bus To create a local bus, you need to derive it from the EventBusBase class Note: Event bus can be subscribed to the other buses","default_branch":null,"files":null,"tree":[],"storefront":"/r/NullTale","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NullTale/UnityEventBus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}