Screen cut off on iPhone 4 when using orthographic camera

I have been working on a 2D iPhone game. I’m testing it on a iPhone 5 aspect ratio, but since the iPhone 4 is using a different aspect ratio this is what happens:

This is the iPhone 5 screen:

And this is the iPhone 4 screen:

as you can see with some levels this isn’t really a problem but what is the best way to make the camera fit the screen just like the iPhone 5?

Thanks in advance!


hi > Uktol

you can change camera size your aspect value, may be it’s work


void Update()


float aspect = Camera.main.aspect;
    if (aspect == 1.5f)  //3:2 ratio landscape


Assing script main camera


screen ratio calculating

ratio 3:2 (3 / 2 = 1,5 aspect value)

ratio 16:10 (16/10=1,6 aspect value)