Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Lightweight IoC container that works in Unity3D

Can somebody suggest me a good and light c# IoC container that works in Unity3D and does not rely on Service Locator pattern? Thank you!

like image 672
sebas Avatar asked Feb 08 '12 19:02

sebas


People also ask

Which IoC container is best?

You can waste days evaluating IOC containers. The top ones are quite similar. There is not much in this, but the best ones are StructureMap and AutoFac. At SSW we use Autofac on most projects.

What is Unity IoC container?

The Unity Container (Unity) is a full featured, extensible dependency injection container. It facilitates building loosely coupled applications and provides developers with the following advantages: Simplified object creation, especially for hierarchical object structures and dependencies.

Which is an IoC container?

The IoC container that is also known as a DI Container is a framework for implementing automatic dependency injection very effectively. It manages the complete object creation and its lifetime, as well as it also injects the dependencies into the classes.


2 Answers

I know this thread is old, but if anyone comes along who's interested in an IoC solution for Unity3D, this open source project went live today: http://thirdmotion.github.io/strangeioc/

like image 97
MarcT Avatar answered Oct 12 '22 23:10

MarcT


We rolled our own based on ideas from Sebastiano Mandalà, which you can find here: https://github.com/modesttree/Zenject

like image 30
Steve Vermeulen Avatar answered Oct 13 '22 00:10

Steve Vermeulen