I just started out with game development for iphone and I came across Unity, I’ve tried it out a bit and it’s really useful and awesome. In my research about iphone development in general I also found out that Cocoa is a C#-based framework for iphone development as well.
So my question is, what’s the pro’s and con’s of using Unity as a complete tool for building iphone games with Javascript instead of coding it from scratch with let’s say Cocoa or any other option for that matter? What makes Unity a good and maybe the best way to go?
I come from a strong programmaing background so I should be able to do both, and I’m not interested in flaming either Unity or other ways to go. I just want as much research as possible before I start my development. So please, post unbiest answers.
Unless I’m mistaken, you can only use objective c, not c#, for iphone development if you go the cocoa route.
The nice thing about Unity is they’ve already done the work for you, and have created a very useable, very powerful, game engine. And yes, it offers a choice of programming languages, both of which, in my opinion, are more approachable than objective c.
The bad thing about Unity is it does have some overhead, particularly for 2D games, so you may see better performance if you write your app in objective c.
Thats right on the straight route you only have C, C++ and for interaction with UIKit or any iphone os thing, Obj C(++)
and what makes unity strong is the editor and the fact that it is very optimized 3D, while using directly cocoa makes it nothing until you invested the hundreds to thousands of hours.
if you are a skilled programmer, maybe you wanna check the other engines out there like SIO2 or Oolong. In both engines you need C/C++ and you don’t need to learn anything about scripts or any other thing related to the unity way. And the interaction with uikit elements and other libraries is far superior on those engines.
As an iPhone Developer that has used both Unity and libraries like Cocos2D and SIO2, one of the biggest benefits of Unity iPhone is the asset pipeline. Setting up a 3D scene and getting your models imported and positioned correctly in OpenGL ES can be an absolute nightmare.
As we say in the south:
Why spend time raising the dairy cow when you can buy the milk for a few bucks?
You’re right the asset pipeline in unity is awesome, but for example with SIO2 you can export your scene from blender, and the setup is the same, what you see in blender is what you see on the iphone. Oolong is a little bit more difficult
right but its intend never was to be a public use engine.
used it in the early days of iphone to see what powervr chips are capable of through the pvr simulator from imagination technology.
its more a technical proof of concept and really oriented towards those with technical interest … its the only engine I know that really uses about all thats present on the iphone.
back then (potentially even now) it was the only engine that used and supported the optimized pvr mesh format for example
Today if you werent a blender guy, you would likely use OGRE or Irrlicht, no reason to fight with ugly-tux-modeller or oolong unless you want to
At last sio have the option to disable the triangle strip when you import your assets, not like unity, I’m loosing around 2k polys in my project due to the “magic” optimisation made in the importer, on a device limited like the iphone, loose 2k polys due the triangle strip is not acceptable at all. And no, definetively no, none of the solutions presented on this forum like avoid as much as you can the uv seams is useful
Thanks alot guys, I’ll definitely check out the other engines you mentioned here. It seems Unity might be a good way to start out anyway. How limited is the iphone really in terms of performace? Some of you mentioned that it’s an unacceptable loss with 2k polys, of course it’s never good to have an unoptimized program but how likely is it that someone new to iphone development over extend and end up with a game that can’t run properly due to performance issues?
As far as I can tell, I’ve made 2 games with SIO2 and both games works really fine, now I switched to unity and one of those games can’t run on unity due the high polycount, instead of 6k polys, unity is transforming the game into 12k polys and the game don’t run smoothly at all.
Now I’m working on a unity game and I’m facing the same problem too much polys on the models, every model has 300 polys wich unity transforms into 800, so I’m near the top (around 10k polys to avoid performance problems). Personally if I know this problem before, I’m sure I won’t buy an unity iphone license, but here I am, trying to find solutions and learning how can I avoid these problems to finish the game