11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

1/5
Rucksack is a dependency injection solution for Unity 3d.
可编程渲染管线(SRP)兼容性
Unity可编程渲染管线(SRP)是让您能够通过C#脚本控制渲染的一个功能。SRP是支撑通用渲染管线(URP)和高清渲染管线(HDRP)的底层技术。
Unity版本内置渲染管线通用渲染管线(URP)高清渲染管线(HDRP)
2020.3.22f1
兼容
兼容
兼容
2019.3.5f1
兼容
兼容
兼容
描述

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.

技术细节
  • 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

(暂无评分)
15 users have favourite this asset
(15)
FREE
许可证类型
文件大小
248.4 KB
最新版本
2.0
最新发布日期
2021年11月24日
原始 Unity 版本
2019.3.5
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR