Earlier this year Unity’s basic mobile licenses went free which is a great thing for indie developers. If you’re new to putting games on mobile with Unity you’re going to want to check out these tips.
Garden Knight Games has a good introductory blog post to getting your Unity game ready for mobile devices.
This article is going to focus on how to get your Unity game running as fast as possible on mobile devices, specifically iPhone but you can carry over techniques to Android as well. This is something I find a lot of people have issues with, their game running at terrible frame rates and not understanding why or what they can do about it! iPhone’s hardware isn’t that beefy which makes optimization much more important! Squeezing visual fidelity without suffering game play is the challenge.
It mentions the 3Gs iPhone quite a bit and I think it’s far to say that you can ignore that device flat out – particularly with the rumoured new iPhone coming in September. Key lesson from this is that directional lights on mobile slow everything way down.
Similarly, Paladin Studios has a post on getting your Unity game ready for iOS and Android using four tips.
1. Use The Performance Profiler
The first thing to look at when you want to improve the performance game is the Unity Profiler. It is a Unity Pro feature that lets you analyze performance bottlenecks. The Profiler is an invaluable tool. With it, you can determine where any framerate issues are coming from. You run the game on your target device, and run the profiler on your PC. When you launch the game, the Profiler starts pumping out performance data.
Here’s a quick video on texture optimisation and size tips in Unity 3D:
Finally, a general tip across all mobile games is scaling for the proper screen size. In this post, three options are outlined: scaling, letter boxing, or cropping.
(hat tip to r/gamedev)