Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why shouldn't I use Unity?

Tags:

I'm using the Unity IoC container. It really wasn't a decision I made, it just came with Prism, and I've just stuck with it. I've never used any other IoC frameworks, and I must admit I'm quite happy with Unity. However, the satisfaction may come from ignorance as I don't really know what the other frameworks have got to offer.

I keep hearing that I shouldn't use the Unity IoC container. "Use Castle, nInject or StructureMap instead", people are saying, but I still haven't heard any concrete arguments or examples to why I should use a different framework. So, why shouldn't I use Unity? Or maybe I should?

like image 314
stiank81 Avatar asked Dec 02 '09 13:12

stiank81


People also ask

Is it worth using Unity?

Unity allows you to build your own tools "If you want to make a small game, quickly, Unity is a really good engine for it. It will render stuff in its own way and maybe you'll use certain plugins, but you won't go too low level. It provides you with lots of tools but you can't change the fundamental parts of it.

Why is Unity not used in AAA games?

AAA teams have enough resources to re-write all of Unity's systems. There aren't any Unity systems worth keeping if you have the resources to re-write them, hence no AAA production will ever use Unity for a big budget blockbuster AAA game.

Is Unity worse than Unreal engine?

Unity has a wide range of mods in comparison to unreal. Unreal has around 10000 assets while unity has 31000 assets. Graphics: Both tools have good graphics but the unreal engine is preferred over-unity because of its graphic quality. Source Code: Unreal engine has open-source making the development process easier.


1 Answers

These containers tend to be about taste, more than anything. Ninject has a nice fluent interface for configuring it, but some people like Unity's ability to be configured through config (masochists, I think) as well as code.

I, like you, had these questions when adopting Prism, so I went through the exercise of replacing Unity with both Ninject and Autofac. I found no compelling reason in terms of performance or features to stick with either over Unity. There are certain things that were nice in both, but they all did basically the same thing and did it well.

I would look at the features, style, and syntax of each and decide which one you like best. That's really the only difference... how it feels. There are generally some core feature differences, but the likelihood of you needing these is pretty slim.

Post an update about what you decide... I'm always interested in people's real world findings vs. what passionate users are advocating.

like image 58
Anderson Imes Avatar answered Sep 23 '22 07:09

Anderson Imes