Easy Dependency Injection for Unity

This package provides a simple and efficient way to inject global and scene systems (managers) into each other. To use it, you need to:

  • Add the SystemsManager prefab to your initial scene
  • Inherit your classes from the SystemBase class if you want to use them from other scripts
  • Use the [Inject] attribute to access these classes
  • If your target class is not inherited from SystemBase or ISystem, or not present on the same scene as the SystemsManager prefab, call SystemsManager.InjectSystemsTo(this) in your Start() or Awake() method

The package includes a simple example of how to use Light DI, such as injecting a CameraController and InputManager into a PlayerController.

This package is suitable for hypercasual, hybridcasual, and midcore games, and supports both classes and interfaces. It can also work in applications with multiple scenes.

Key features:

  • Minimal but sufficient Dependency Injection functionality for small to medium-sized projects
  • Easy to integrate and use
  • Perfect solution for hypercasual, hybridcasual, and midcore games
  • Supports both classes and interfaces
  • Can work in applications with multiple scenes

Easy Dependency Injection for Unity - Asset Store

πŸ€– Chat with AI

AI is typing

Suggested Posts

Easy Dependency Injection for Unity and C#

Easy Dependency Injection for Unity and C# Thumbnail

Dependency Injection for Unity

Dependency Injection for Unity Thumbnail

Easy State Machine for Unity

Easy State Machine for Unity Thumbnail

Easy Anti-Cheat Tools for Unity

Easy Anti-Cheat Tools for Unity Thumbnail

C# Toolkit for Unity

C# Toolkit for Unity Thumbnail

Easy Screenshots for Unity

Easy Screenshots for Unity Thumbnail