Skip to content

release: version 1.0.0 - #1

Merged
reromanlee merged 31 commits into
mainfrom
release/version-1.0.0
Oct 30, 2026
Merged

reromanlee merged 31 commits into
mainfrom
release/version-1.0.0

Conversation

@reromanlee

@reromanlee reromanlee commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

EventAggregator 1.0.0

What's new

  1. Type-keyed publish/subscribe event bus: IEventBus, EventBus and the contravariant IEventListener<in TEvent>, with one class able to listen to several event types.
  2. Zero-allocation, lock-free Publish that finds listeners with a single per-type array read, safe to call every frame from any thread.
  3. Amortized O(1) Subscribe and Unsubscribe, so thousands of listeners can join or leave in one frame at linear time and memory cost.
  4. Listeners unsubscribed during a publish stop receiving immediately; listeners subscribed during a publish receive the next one.
  5. Destroyed MonoBehaviour and ScriptableObject listeners are skipped and unsubscribed automatically, with a warning in the editor and development builds.
  6. Teardown-safe disposal: Publish, Unsubscribe and HasListeners after Dispose are no-ops, and Dispose stops deliveries in progress.
  7. Per-listener fault isolation through Debug.LogException, with clickable stack traces and the listener as log context.
  8. HasListeners<TEvent>() to skip building events that nobody listens to.
  9. Recursion guard in the editor and development builds that reports infinite publish loops and cancels the runaway chain, compiled out of release builds.
  10. Event Debugger window (Window ▸ Analysis ▸ Event Debugger): virtualized live trace of publishes and deliveries as a chain tree, even across buses, with the bus named on every publish row, Record, Clear on Play, search, per-bus filtering, EventBus.SetDebugName and Light/Dark theme support, costing one flag check per publish while closed.
  11. Listeners are identified by reference, so Equals overrides cannot break unsubscription, and struct listeners are rejected.
  12. Getting Started sample with application, user interface and per-match buses, chained events and presenters bridging buses, plus Edit Mode and Play Mode test suites and a GameCI workflow.
  13. Unity 2022.3 LTS and Unity 6 support; safe under IL2CPP, managed code stripping and WebGL.

Important

  1. The package lives in the UnityPackage/ folder of the repository, so git URL installs must end with ?path=/UnityPackage.

@reromanlee reromanlee self-assigned this Oct 28, 2026
@reromanlee
reromanlee merged commit 5e050d7 into main Oct 30, 2026
8 checks passed
@reromanlee
reromanlee deleted the release/version-1.0.0 branch October 30, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant