How to set up resolution on Android?

Hi, I am new to programming. I am making an Android game and I want to create a game for specific resolution. I use to camera yet, a main camera, and one for background. (2d)
I put a logo on the top right of the screen (tha main camera sees that) The background is in the middle. So it looks like this: logo on top right corner. Background is in the middle of the work table (in game view) But And the background is the basic. So I sat the background image picture size but I don’t know how to adjust worktable size for that. (so I think the game would appear as a big, wmpty screen, with the backgrund in the middle)
Can somebody help me?

Ok, maybe it wasn't specific. So I want to change the worktable size to adjust to background. Or if I set reolution and put the logo on the background it will appear just with that?

1 Answer

1

hii

attach following code to your main camera gameobject

//set aspectRatio from inspector like 0.75

public float aspectRatio;
void Start()
{
Camera.main.aspect= aspectRatio;
}

or you can also use new UI features of Unity 4.6 to solve your problem