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 - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • 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

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • 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