Hi! I am finishing my first mobile game and I have some problems when exporting the app to my phone.
In the unity editor everything works fine. I have got an orthographic camera (size 16, rect width and height 1) that when exported to my phone suddenly appears to have a bigger viewport. I need to have a fixed 320x480 resolution.
I have been reading in the forums but I can’t seem to understand how to fix it. Can anybody help me?
Thank you for your time.
You probably want to make the Android scale itself, this is something I’d like to know myself. I personally wouldn’t set my game at an exact resolution but some Android devices might not be able to support such resolutions.
I found that I should modify the AndroidManifest adding the following line:
Tried that and it didnt work…
Bump
I am now trying to to make the game independent of screen resolution. Do I need to change the camera or anything? The same 16 sized camera shows two different things for different resolutions.The what is the camera size for? I am kinda desperate since the game is almost done and I gotta turn it in D:
What’ve done is have my game set at all resolution aspect ratios and try to please each one. You could also try Screen.SetResolution on Awake or Start and then load the game but that isn’t a perfect fix.