- Home /
How to set up Unity for portrait Mobile development?
Hello Reader,
I have just started to build my own little game for Android and Apple mobile phones. I have attempted but I still don't know how to adjust the screen (or camera, Canvas) orientation to portrait so that it would be suitable for these platforms.
Can someone give me a start as to how I should approach this? There are lots of different sources but no clear answer, please help.
Many thanks,
Mo
Answer by Hellium · Nov 20, 2016 at 09:43 AM
The first thing you can do is to adjust the Game View to be in "portrait mode". Simply click on the button next to "Display 1" on the little bar at the top of the Game View. The name of the button is "Free Aspect" by default.
Here, create a new window size with the desired dimensions. Take a look at this site to get example of mobile dimensions. You camera will automatically be in Portrait mode in your scene view and game view.
Then, in the Build settings of Android and iOS, disable all the allowed orientation except "Portrait". Now, when you build your game, the players won't be allowed to turn the game in landscape mode.
Thanks, Hellium! You have given a very detailed and resourceful answer.
I have a question in unity 2019 there are no portrait landscape check boxes anymore where can I find it
Your answer
Follow this Question
Related Questions
Unity free on sony xperia s 2 Answers
Is it suitable to use unity for other then making games?! 0 Answers
Making a 2D line? 1 Answer