View on Asset Store (opens in new tab)
Package details
- Latest version
- 1.0.1
- Last updated
- First released
- Unity version
- 2022.3.39 or later
- Package size
- 30 KB
- Files
- 15
- Favorites
- 4
- Views in the past week
- 4
Price tracking
- Last checked
- Tracked since
- Lowest recorded
- Free on
Keywords
Light DI | Easy Dependency Injection
Fly-weighted and easy DI system
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 / 4
Light DI | Easy Dependency Injection screenshot 1
About this asset
This DI system allows to inject global and scene systems(managers) into each other.
To use this DI system you need only few things:
- Add SystemsManager prefab onto your initial scene
- Inherit your classes from SystemBase class, if you need to use them from other scripts
- Use [Inject] attribute to access these classes
- If target class is not inherited from SystemBase class, ISystem interface, or not presented on the same scene where SystemsManager prefab presented – call SystemsManager.InjectSystemsTo(this) in your Start() or Awake() method in class where you want to inject needed systems
This package contains simple example how to use Light DI:
- PlayerController with injected CameraController and InputManager.
Discord | Email
From the publisher's Asset Store listing.
Technical details
- minimal (but sufficient) Dependency Injection functionality for not complex projects (it allows to inject global and scene systems(managers) into each other)
- easy to integrate, easy to use
- perfect solution for hypercasual/hybridcasual and midcore games
- supports both classes and interfaces
- can work in applications with multiple scenes
Compatibility
| Unity version | Built-in | URP | HDRP | Custom |
|---|---|---|---|---|
| 2022.3.39f1 | Compatible | Compatible | Compatible | Compatible |
As listed on the Asset Store.