- Home /
Created a Vertical game for iPhone / Android
Hey everyone, this should be an easy question to solve;
The cameras in Unity are of rectangular ratio, such as Landscape on smart phones.
Is there a way to setup the game camera as Vertical? to play a game with the longer dimention on the sides?
I cant seem to make the camera do this? or do i have to create the game "sideways" on the computer and refer to say the Terrain in terms of "left-forward" - "right-backward"?
Thanks guys
Answer by Eric5h5 · Feb 07, 2011 at 04:56 AM
Switch the Unity editor to iOS/Android, then the game view drop-down will have Tall and Wide selections. But even without switching, you can always just resize the game view to whatever you want manually.
champion, my boss hasnt bought the ios/andriod upgrades yet, so im building in desktop mode. I thought that those modes would have the correct ratios. Thank you.
Also, just as a note, i've had some of my problems solved by reading your forum posts, so thanks for your work.
$$anonymous$$atty
Answer by Justin Warner · Feb 07, 2011 at 04:11 AM
Under Normalized View Port Rect in the camera...
Also try setting to orthographic if you don't need it to be 3D...
This help?
Hope it does, if not comment back and I'll try more.
Good night!
Yes i have tried this - i am in Orth, its how i am building the game, a Top-down flying game, player controls a small plane. But choosing where the camera renders inside the ratio isnt what im looking for, or is there a setting that is ment for iPhones/Androids? - ofcourse aspect ratios will cahnge a little between each manufacturer of Android phones, but the ratio is roughly equal - So unity hasnt got a aspect for smart phones in vertical?
Setting the normalized viewport rect will screw up the camera when it's built to the device, so don't do that.
Your answer
![](https://koobas.hobune.stream/wayback/20220613103155im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How does WebcamTexture work? 0 Answers
Camera projection ploblem in Android device 1 Answer
Mapping accelerometer to Camera's position 2 Answers
Mobile Device Video Camera 1 Answer
perspective camera into android 0 Answers