A lightweight dependency injection system for Unity. Easily organize, manage, and inject services into your game objects without boilerplate or complexity.Simple Dependency Injector is a lightweight, efficient, and Unity-focused plugin designed to streamline how you manage shared services throughout your game. Unlike large and complex dependency-injection frameworks, this tool is crafted specifically for Unity’s architecture — respecting object lifecycles, performance constraints, and the unique workflows of game development.With this plugin, you can register services implemented as ScriptableObjects or MonoBehaviours and retrieve them through a clean and centralized API. The system avoids heavy reflection, unnecessary abstractions, and runtime overhead, delivering a minimal and predictable approach that works seamlessly inside Unity projects of any size.Read mehttps://github.com/icaro56/simple-dependency-injector/blob/main/README.mdYou can install this package via UPM. Follow the readme link.Key features include:Automatic and safe service registration during initializationFast, type-based generic retrieval methodsSeparate support for ScriptableObject-based and MonoBehaviour-based servicesBuilt-in protection against accidental type duplicationOptional lazy service access for improved performanceA minimal and intuitive API designed for clarity and maintainabilityThe Simple Dependency Injector was created with one goal in mind: to help you keep your project clean, decoupled, testable, and easy to maintain — without adding unnecessary complexity.If you want a dependency-injection solution that is simple, efficient, and truly built for Unity, you’ve just found it.AI was used to assist with documentation writing, proofreading, and improving code clarity. All core design decisions, implementation, and testing were done manually by the developer.




