Setting up game Resolution to work on mulitple devcies?

What’s the best way for me to set up my camera and resolution so that my left and right game boundaries are always aligned to the left and right of my device screen (would have black bars at top and bottom in some cases)? Here’s what I’ve noticed for platforms I’d like to target:

Surface 1 RT = 1366 x 768, AR = 16 : 9
Surface 2 RT = 1920 x 1080, AR = 16 : 9
Surface Pro 1 = 1920 x 1080, AR = 16 : 9
Surface Pro 2 = 1920 x 1080, AR = 16 : 9
iPad3 = 2048 x 1536, AR = 4:3
iPad2 = 1024 x 768, AR = 4:3

I’m compiling to Windows Store App, so under Project Settings->Player->Settings For Windows Store Apps I don’t get any resolution option it says * Shared setting between multiple platforms.

I’ve played with the game resolutions at the top left of the game window, tried 16:9, 16:10, custom 1920x1080 …etc but when I change my desktop resolution, my game fits great at 1366x768 but is cut off at the left and right edges when I select 1680 x 1050? I need it to always fit left and right no matter what desktop resolution a user is using…

Any info on fixing this would be appreciated…

Thanks,

Vanz

The best way I found to handle resolutions is to do everything in world space (units), and never use screen space (pixels).
This will be tricky to start with since the standard Unity GUI we currently have is screen space.

Unfortunately the aspect ratio is not handled the way you want by default. You could try changing your camera’s aspect ratio (Camera.aspect) or if that doesn’t work, change the normalized viewport.

Did a quick search while typing this. This link might help http://forum.unity3d.com/threads/167937-Keep-aspect-ratio