x


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

more ▼

asked Feb 07 '11 at 03:57 AM

Matthew 5 gravatar image

Matthew 5
32 10 10 12

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Feb 07 '11 at 04:56 AM

Eric5h5 gravatar image

Eric5h5
80.2k 41 132 521

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.

Matty

Feb 07 '11 at 05:13 AM Matthew 5
(comments are locked)
10|3000 characters needed characters left

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!

more ▼

answered Feb 07 '11 at 04:11 AM

Justin Warner gravatar image

Justin Warner
6.3k 19 27 65

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?

Feb 07 '11 at 04:53 AM Matthew 5

Setting the normalized viewport rect will screw up the camera when it's built to the device, so don't do that.

Feb 07 '11 at 04:57 AM Eric5h5
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2998
x2468
x1999
x57
x7

asked: Feb 07 '11 at 03:57 AM

Seen: 1858 times

Last Updated: Feb 07 '11 at 03:57 AM