Over 11,000 five-star assets
Rated by 85,000+ customers
Supported by 100,000+ forum members
Every asset moderated by Unity
Unity Version | Built-in | URP | HDRP |
---|---|---|---|
2020.3.22f1 | Compatible | Compatible | Compatible |
2019.3.5f1 | Compatible | Compatible | Compatible |
We’ve used various dependency injection frameworks in and out of Unity. All of them have been cumbersome, requiring custom scripts and scene game objects that just obfuscate the problem.
Rucksack resolves the problem created by so many other DI framework by providing an easy to use attribute API. The attributes trigger the use of the GetComponent(s) service locator methods provided by Unity to resolve your game object dependencies for you.
Not only does Rucksack resolve your dependencies, but it has runtime checking to make sure the dependencies you are attempting to resolve don’t go unnoticed. If however you have an optional dependency, you can disable the runtime validation for that dependency.
* If you had Rucksack in your project previously (v1.0) please delete it before importing.