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!
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.
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.
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.
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/
We rolled our own based on ideas from Sebastiano Mandalà, which you can find here: https://github.com/modesttree/Zenject
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With