I am excited to announce that Simpleton v1.6.0 is now officially available on the Unity Asset Store!
Simpleton is a lightweight, minimalistic Dependency Injection (DI) framework designed specifically for Unity game development. In this update, we are introducing buffered messaging support for late-subscribing components, as well as code-based registration APIs to make deferred references and unit testing even more flexible.
π What's New in v1.6.0
1. Buffered Pub/Sub Messaging (Replay to Late Subscribers)
We have added buffered Pub/Sub interfaces (IBufferedMessagePublisher<T> / IBufferedMessageSubscriber<T> for Scoped, and IGlobalBufferedMessagePublisher<T> / IGlobalBufferedMessageSubscriber<T> for Global).
Unlike standard Pub/Sub, buffered messaging holds onto the latest published message and immediately delivers it to any subscriber as soon as they subscribe. It also provides a TryGetLatest(out T message) method for synchronous, non-destructive inspection.
• Benefit: Perfect for UI views, HUD elements, or late-spawned game objects that need the current game state (e.g., player score, HP, current game mode) the moment they initialize, without waiting for the next event to be fired. Check out the new 14_BufferedPubSub sample scene included in the package!
2. Code-Based Deferred Reference Registration
You can now register instances into IDeferredReference<T> directly from C# code using ServiceProvider.RegisterToDeferredReference<T>(). The registration returns an IDisposable token, allowing clean and automatic deregistration when the provider or object is disposed.
• Benefit: Greatly simplifies unit testing by making it trivial to inject mock/stub implementations into deferred references programmatically, as well as registering runtime-created objects without relying exclusively on attributes or Inspector references.
3. Updated AI Skills & User Guide
The built-in AI Skills (under AI/Skills/) have been updated to asset-version 1.6.0, allowing AI coding assistants (like Claude) to automatically leverage buffered messaging and new deferred reference APIs following best practices. In addition, a dedicated section explaining buffered Pub/Sub has been added to the User Guide PDF.
π Full Changelog
[1.6.0] - 2026-09
• Added Buffered Pub/Sub interfaces and implementations (IBufferedMessagePublisher<T> / IBufferedMessageSubscriber<T> and global variants).
• Added TryGetLatest(out T message) to buffered message subscribers for immediate state inspection.
• Added ServiceProvider.RegisterToDeferredReference<T> for code-based deferred reference registration.
• Exposed SimpletonContainer.GetDefaultAutoRegisterGenericImplementationType as a static method.
• Added new sample scene: 14_BufferedPubSub.
• Added a dedicated Buffered Pub/Sub chapter to the User Guide PDF.
• Updated AI Skills to asset-version 1.6.0 with full scenario coverage.
π Get Simpleton Today!
Update your project or get started with Simpleton today on the Unity Asset Store:
• Unity Asset Store: https://assetstore.unity.com/packages/tools/utilities/simpleton-326289
• Official Website: https://fig-code-factory.blogspot.com/
Thank you for using Simpleton! If you have any questions, suggestions, or feedback, please feel free to leave a review or reach out.