I am excited to announce that Simpleton v1.4.0 is now officially available on the Unity Asset Store!
Simpleton is a lightweight, minimalistic Dependency Injection (DI) framework designed for Unity game development. In this update, I’ve focused on improving usability, reducing boilerplate code, and ensuring full compatibility with the latest Unity features.
π What’s New in v1.4.0
1. Self-Contained Prefabs (Zero-Setup Installer)
Creating reusable prefabs with DI is now easier than ever. When the Target Game Objects array on SimpletonInstaller is left empty, it will automatically target and inject into its own GameObject and attached components.
- Benefit: You can simply attach a SimpletonInstaller component to a prefab without any Inspector configuration required. It just works!
2. Safety & Convenience: ExecuteIfPresent Helper
I’ve introduced the ExecuteIfPresent(Action<T> action) method to streamline handling deferred references and optional dependencies.
- Benefit: Safely execute logic only when a service or reference is initialized, eliminating repetitive null check boilerplate code.
3. Full Fast Enter Play Mode Support (Unity 6.6+)
Starting with Unity 6.6, Fast Enter Play Mode (Domain Reloading disabled) is the default setting for new projects. To support instant Play mode transitions without state leaks, Simpleton v1.4.0 automatically resets static fields and reflection caches on SubsystemRegistration.
- Benefit: Seamless performance during Play mode testing with zero state persistence across sessions.
π Full Changelog
[1.4.0] - 2026-08
• SimpletonInstaller now injects into its own GameObject when Target Game Objects is left empty. This makes it possible to create self-contained prefabs by simply attaching a SimpletonInstaller, with no inspector setup required.
• Added ExecuteIfPresent(Action<T> action) method to allow safe execution of logic only when a value is present, reducing null-check boilerplate.
• Added support for Fast Enter Play Mode (Domain Reloading disabled) by automatically resetting static fields and reflection caches on SubsystemRegistration.
π Get Simpleton Today!
Update your project or get started with Simpleton today on the Unity Asset Store:
- Unity Asset Store: https://assetstore.unity.com/publishers/114203
- Official Website: https://fig-code-factory.blogspot.com/
Thank you for using Simpleton! If you have any feedback or questions, feel free to reach out or leave a review.