Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by TheflyingDutchmen · Nov 20, 2016 at 09:36 AM · mobileviewdevelopmentportrait

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

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
24
Best Answer

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.

Free Aspect

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.

Comment
Add comment · Show 4 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image TheflyingDutchmen · Nov 20, 2016 at 11:40 AM 0
Share

Thanks, Hellium! You have given a very detailed and resourceful answer.

avatar image judyannvibal1 · Oct 23, 2018 at 09:42 AM 0
Share

Thank you so so much!

avatar image shashanksingla · Feb 25, 2019 at 05:33 AM 0
Share

Thanks for the detailed answer!

avatar image BriRivera · Jun 26, 2019 at 12:20 PM 2
Share

I have a question in unity 2019 there are no portrait landscape check boxes anymore where can I find it

Your answer

Hint: You can notify a user about this post by typing @username

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

Answers Answers and Comments

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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

[AR] Any gun controller library for unity3d? 0 Answers

Poll which line of code app is stuck at? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges