Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

1/5
Rucksack is a dependency injection solution for Unity 3d.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2020.3.22f1
Compatible
Compatible
Compatible
2019.3.5f1
Compatible
Compatible
Compatible
Description

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.

Technical details
  • Complete source code.
  • Inline Field and Property injection.
  • Resolve custom components and built-in Unity components.
  • Legible and easy to use Api.
  • No special Scene game objects or scripts required.
  • Set readonly properties.
  • Dependency injection from self, parent(s), and children.
  • Resolve a single component or a collection of components.
  • Runtime dependency validation.
  • Quick Start and Scripting documentation.

Rucksack

(not enough ratings)
15 users have favourite this asset
(15)
FREE
License type
File size
248.4 KB
Latest version
2.0
Latest release date
Nov 24, 2021
Original Unity version
2019.3.5
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR