Singleton vs Dependency Injection vs Service Locator vs Scriptable Objects

This page summarizes the projects mentioned and recommended in the original post on /r/Unity3D

Our great sponsors
  • InfluxDB - Collect and Analyze Billions of Data Points in Real Time
  • Mergify - Updating dependencies is time-consuming.
  • SonarQube - Static code analysis for 29 languages.
  • Extenject

    Dependency Injection Framework for Unity Game Engine (by Mathijs-Bakker)

    I'm not sure Extenject handles this but did you check it? Also if you're forgetting to call the extra init function, you can create a MonoInitializeable interface.

  • VContainer

    The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.

    DI libraries in Unity are powerful and very fun to work with when done right, but different types of projects don’t really benefit from them as nearly as much. I primarily use the library VContainer instead of Zenject/Extenject nowadays due to its performance, simplicity, and flexibility. I prefer to have control over my application’s architecture and VContainer is a much better fit for that (plus it’s actually maintained and isn’t plagued with a years long legal dispute).

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • GOAP

    A multi-threaded GOAP system for Unity (by crashkonijn)

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts