View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.5.1
- Last updated
- First released
- Unity version
- 2021.3.45 or later
- Package size
- 652 KB
- Files
- 32
- Favorites
- 8
- Views in the past week
- 10
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
USyrup - Dependency Injection Framework
A simple to use dependency injection framework for the Unity Game Engine inspired by Java's Guice and Dagger frameworks.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 6
USyrup - Dependency Injection Framework screenshot 1
About this asset
USyrup is a dependency injection framework designed for the Unity Game Engine. It's heavily inspired by Java's Guice/Dagger DI frameworks, co-opting similar such semantics from those libraries. The core problem that USyrup attempts to address is simplicity. Many dependency injection frameworks that currently exist are both incredibly feature rich and even more so complicated. USyrup's simplicity makes DI much more approachable and actually benefit a project instead of creating dependency confusion.
Check out USyrup on Github: https://github.com/Jeffan207/usyrup
Or through OpenUPM: https://openupm.com/packages/com.cannone.usyrup/
From the publisher's Asset Store listing.
Technical details
USyrup includes many core dependency injection features such as:
- Inject semantics through an [Inject] attribute.
- DI modules with provider semantics via the [Provides]/[Named] attributes, similar to Guice/Dagger modules.
- Constructor, method, field, and property injection.
- Singleton support.
- Lazy injection support.
- Declarative bindings for streamlined injection semantics.
- Scene injection for injecting all MonoBehaviours on scene load.
- On-demand injection for injecting MonoBehaviours at runtime.
- Support for injecting both MonoBehaviours and regular C# classes.
- And more!
And more! Check out the README for the complete feature list!
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2021.3.45f2 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.