SInject


Develop faster with a simple, easy-to-use dependency injection framework for Unity.


by Overefactor


Price History +

What SInject Brings to Your Unity Projects

SInject provides a clean and straightforward approach to managing dependencies in Unity, helping you organize your code with clear separation of concerns. Its architecture around injectors and services lets you easily inject and resolve dependencies for scenes, prefabs, components, and scriptable objects.


Why Choose SInject?

Managing dependencies manually can lead to tightly coupled code and maintenance challenges. SInject helps you avoid these pitfalls by promoting modular design and enabling easier testing and refactoring. Its integration with Unity’s ecosystem means you can adopt dependency injection without interrupting your existing workflows.


Simplified Dependency Management

With SInject, you set up a root injector and register your services effortlessly, whether they’re MonoBehaviours, ScriptableObjects, or .NET classes. Inject dependencies automatically at runtime with intuitive attributes, making your components lean and focused on their core responsibilities.


Key Capabilities

  • Support for dependency injection in both scenes and gameObjects
  • Persistent services across scenes with configurable lifecycle
  • Injection of components, scriptable objects, and plain .NET classes
  • Handling of circular dependencies and collections of services
  • Prefab spawning with automatic dependency injection
  • Custom injection support for advanced scenarios
  • Built-in testing helpers to improve code quality
  • Context Debugger for runtime inspection of injection state

Boost Your Development Workflow

By automating and standardizing how dependencies are injected, SInject helps you build more maintainable and testable Unity projects, saving time and reducing complexity during development and iteration.