What are things to keep in mind while developing an Android game with Unity?

I am new to unity and I am developing a android arcade game (2D project) . I was not aware that unity doesn’t auto fit resolutions according to the mobile device. I want to know how can we auto scale / fit the game in multiple screens. I have a nexus 4 which has a resolution of 1280x768 and I did a little search around and used "

// Switch to 1280 x 768 fullscreen

Screen.SetResolution (1280, 768, true); I am sure I am doing something wrong here. Please let me know.

I’ve used this script on the gameobject and its working but its making things even worse. I basically don’t want my game to show the solid color , i only want it to show the content the camera is seeing. Hope you guys can follow me.

Just setup the camera right and use the gameview and switch the exporter to android for example.
In the gameview you can select or setup the right res.

I did setup the camera correctly I believe. In the gameview I’ve tried different res but that doesn’t solve my problem. I want the game to auto fit to various mobile resolutions when I deploy it to various android phones to test but I see the solid color along with game.

There are many ways to solve it. And you could add an background. In some of my games i use 2Dtoolkit Camera with Fit With etc… Or you write your own script.

Thank you for your reply.

if you need any help just ask…