- Home /
how to build game for Android phone all resolution?
Hello !! presently!I have a problem after I build my game for Android phone. I also Use tk2dCamera in my game and resolution screen(480x800) for Galaxy S2.After this i build my game to Gataxy S4 i got a problem .Pleas see the picture about my problem !
!
So my Question is*"How Can I Build my game for all types of Android phones ? Or How Can I do about this ?"*
As far as I know your only option is to adjust things yourself. You can get the current screen height and width in pixels via scripting, and calculate your aspect ratio from this. You can then check every frame if this has changed. If it does change then you can adjust the camera etc in relation to this new aspect ratio.
Can I Use it with NGUI or UI? but i don't how can i get it for my unity 3d.
Answer by pako · Nov 12, 2014 at 08:23 AM
To solve this type of problem, i.e. multiple resolutions in android devices, I use "xARM: Aspect and Resolution Master" from the Asset Store:
https://www.assetstore.unity3d.com/en/#!/content/10563
It's excellent! It has an extensive list of all Android devices with their respective resolutions, and the list is frequently updated. It helps you preview your game in each device you select, so that you can make the necessary adjustments.