EasyJection is an open-source project that implements dependency injection without using any attributes, allowing you to write your code without direct dependencies on the framework. This approach helps to avoid tying your project code to the framework, making it more flexible and reusable.
Dependency Injection is a software design concept that allows a service to be injected in a way that is completely independent of any client consumption. It separates the creation of a client's dependencies from the client's behavior, allowing program designs to be loosely coupled. EasyJection allows you to write more flexible, reusable, and encapsulated code.
Key Features:
- Injection Mechanisms:
+ Standard C# objects
+ Constructor injection
+ Method injection
+ Field injection
+ Property injection
+ Parameter injection
+ Inherited from MonoBehaviour
- Can inject on non-public members
- Convention-based binding
- Conditional binding
- Context-Aware Injection Support
EasyJection is a great tool for writing better code and ensuring SOLID principles. It's a must-have for any Unity developer looking to improve their code quality and maintainability.
All platforms based on IL2CPP are supported.
EasyJection: A Dependency Injection Framework for Unity - Asset Store





