{"id":20822836,"url":"https://github.com/alexmalyutindev/unity-event-bus","last_synced_at":"2026-05-16T01:31:49.642Z","repository":{"id":81729526,"uuid":"405648245","full_name":"alexmalyutindev/unity-event-bus","owner":"alexmalyutindev","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-12T14:37:28.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-09T23:33:00.438Z","etag":null,"topics":["events","unity","upm","upm-package"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexmalyutindev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-12T13:23:13.000Z","updated_at":"2022-08-24T11:40:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"50bf5c64-85e1-4bcf-b546-7f6a348dd496","html_url":"https://github.com/alexmalyutindev/unity-event-bus","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alexmalyutindev/unity-event-bus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmalyutindev%2Funity-event-bus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmalyutindev%2Funity-event-bus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmalyutindev%2Funity-event-bus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmalyutindev%2Funity-event-bus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexmalyutindev","download_url":"https://codeload.github.com/alexmalyutindev/unity-event-bus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexmalyutindev%2Funity-event-bus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33087028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["events","unity","upm","upm-package"],"created_at":"2024-11-17T22:16:16.069Z","updated_at":"2026-05-16T01:31:49.626Z","avatar_url":"https://github.com/alexmalyutindev.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"Unity Event Bus system. \n==========\n\n[![Build](https://github.com/alexmalyutindev/unity-event-bus/actions/workflows/upm-ci.yml/badge.svg)](https://github.com/alexmalyutindev/unity-event-bus/actions/workflows/upm-ci.yml)\n[![Release](https://img.shields.io/github/v/release/alexmalyutindev/unity-event-bus)](https://github.com/alexmalyutindev/unity-event-bus/releases)\n\nExamples\n--------\n- Single subscription:\n```c#\npublic class Foo : IDisposable\n{\n    private IDisposable _sub;\n\n    public Foo(IEventBus eventBus)\n    {\n        _sub = eventBus.Subscribe\u003cEventA\u003e(e =\u003e Debug.Log(e));\n    }\n\n    public void Dispose()\n    {\n        _sub.Dispose();\n    }\n}\n```\n- Bus subscription using `IEventBusSubscriber` interface:\n```c#\npublic class Foo : IEventBusSubscriber, IDisposable\n{\n    private readonly IEventBus _eventBus;\n\n    public Foo(IEventBus eventBus)\n    {\n        _eventBus = eventBus;\n        _eventBus.Subscribe(this);\n    }\n\n    public void HandleEvent\u003cT\u003e(T e)\n    {\n        switch (e)\n        {\n            case EventA a:\n                //...\n            break;\n        }\n    }\n\n    public void Dispose()\n    {\n        _eventBus.Unsubscribe(this);\n    }\n}\n```\n- Fire events:\n```c#\neventBus.Fire(new EventA());\n```\nInstallation\n------------\nFind the manifest.json file in the Packages folder of your project and add a line to `dependencies` field:\n\n* `\"com.alexmalyutindev.event-bus\": \"https://github.com/alexmalyutindev/unity-event-bus.git#latest\"`\n\nOr, you can add this package using PackageManager `Add package from git URL` option:\n\n* `https://github.com/alexmalyutindev/unity-event-bus.git#latest`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmalyutindev%2Funity-event-bus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexmalyutindev%2Funity-event-bus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexmalyutindev%2Funity-event-bus/lists"}