View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.3.3
- Last updated
- First released
- Unity version
- 2021.3.4 or later
- Package size
- 413 KB
- Files
- 28
- Favorites
- 16
- Views in the past week
- 16
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Init(args) Lite
Price Free
Get it free on Asset Store (opens in new tab)
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 3
Init(args) Lite screenshot 1
About this asset
What is Init(args) Lite?
Init(args) Lite is a free version of the Init(args) dependency injection framework. It extends the MonoBehaviour class with the ability to receive arguments during initialization.
You'll be able to continue using all the same commands you're used to - AddComponent and Instantiate - just with the added ability to pass arguments as well.
This small but significant change means that your components are no longer closed islands. Things that used to be pretty much impossible to do, like writing unit tests for them, are suddenly easy and frictionless.
The arguments will be received by components before the Awake and OnEnable events, so you don't have to avoid using them, or clutter them with null-checking.
Reflection-Free
Init(args) Lite works using pure dependency injection, without any reflection; generic methods and interfaces are used to provide strongly typed pipelines through which dependencies can be delivered.
This approach has various benefits, such as solid performance compared to reflection-based dependency injection solutions, and errors being caught as early as possible at compile-time.
Features
• Instantiate with upto twelve arguments.
• AddComponent with upto twelve arguments.
• x != Null - easily test if an interface type variable contains a null or destroyed reference.
Links
• Forum
Init(args) Lite is a free version of the Init(args) dependency injection framework. It extends the MonoBehaviour class with the ability to receive arguments during initialization.
You'll be able to continue using all the same commands you're used to - AddComponent and Instantiate - just with the added ability to pass arguments as well.
This small but significant change means that your components are no longer closed islands. Things that used to be pretty much impossible to do, like writing unit tests for them, are suddenly easy and frictionless.
The arguments will be received by components before the Awake and OnEnable events, so you don't have to avoid using them, or clutter them with null-checking.
Reflection-Free
Init(args) Lite works using pure dependency injection, without any reflection; generic methods and interfaces are used to provide strongly typed pipelines through which dependencies can be delivered.
This approach has various benefits, such as solid performance compared to reflection-based dependency injection solutions, and errors being caught as early as possible at compile-time.
Features
• Instantiate with upto twelve arguments.
• AddComponent with upto twelve arguments.
• x != Null - easily test if an interface type variable contains a null or destroyed reference.
Links
• Forum
From the publisher's Asset Store listing.
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2021.3.4f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.