I am making an iPad specific game in portrait view with a 768 x 1024 resolution. I have selected Game View window to iPad Tall and Maximize on Play is enabled, so I get an accurate preview of what the game looks like when I click the Play button.
However, I am trying to precisely position my camera so the angle of view and geometry I see is exactly what I want it to be. When I select the Camera in the Editor there is a little camera preview window in the bottom right corner of the Scene View. However, it always shows the aspect ratio of the current Game View before the Maximise setting takes effect, so it is completely the wrong ratio and it is therefore impossible for me to get the positioning right.
Is there a way to have the Camera Preview shown in the Scene View accurately represent the aspect ratio set for the game? Seems rather dumb as it is now.
Thanks
You can switch to the Game window at any time to see accurately what the camera sees. I find the Camera Preview to be too small to be of use anyway, so always use the Game window.
1 Like
That doesn’t work for me at all. The Game View preview is the wrong shape and aspect ratio on my laptop and I can’t get it to the resolution and shape I need for it to be matched. I have to play the game with Maximise on play set to get it right, which means I can’t position the camera accurately.
This is really poor.
Set a resolution to get the right aspect ratio in the Web or PC/Mac Player settings.
Set the project to that platform.
Select the option that shows that size in the top-left of the Game window.
I’ve done all of that. However, my Game Window in the editor is in a space with an aspect ratio of about 5 : 2, so it doesn’t display at the target resolution. The aspect ratio is also totally different, for this reason the Camera Preview size and ratio is completely wrong (also 5 : 2).
My iPad resolution is 768 x 1024 and the aspect is 3 : 4. I line up my camera in preview, but it looks completely different when the game actually runs.
I see this as a bug in Unity. It should show the aspect ratio set for the Game Window, but it doesn’t.
I’ve just tried working with a smaller Game window. It does indeed change the aspect ratio. That is a change in behaviour from the last time I encountered the situation. It used to keep the aspect ratio, but reduce the resolution to fit, which caused some problems. The way it behaves now is much worse.
I make sure I have a Game window bigger than iPad resolution, and so get the right ratio at the right resolution. I am lucky to be working on a large screen, and must be a problem for those working on laptops. It will become an even bigger problem if the rumoured Retina iPad appears.
Thanks for confirming I am not going mad. This must be a bug in Unity 3.4.
I do have a dual monitor desktop setup too, and I don’t get the problem there, but I also do a lot of work on a Macbook Air, and it is a nightmare in that situation.
As you found it, I suggest you submit a bug report to Unity.
I found a solution after having the same problem… The camera changes depending on the window-configuration you have. When you switch to another mode and back to default under __W__indow>Layouts it should work.
Cheers 
1 Like