Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
0
Question by Richard 3 · Sep 26, 2012 at 08:12 AM · iphoneipadlandscapeportraitinitialisation

Initial orientation on iPhone starts vertical then turns portrait, How do I stop this?

Hi. I have developed a game in landscape orientation. When I open the game my splash screen is in portrait mode. All my GUI stuff works on the phones resolution, because the game initializes in portrait none of my GUI works.

How can have the game initialize horizontally? Please note that I have chosen Landscape under Resolution and Presentation in the build settings. Another thing to note is this doesn't happen on a iPad.

Thanks

Comment
Add comment · Show 2
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 hvilela · Sep 26, 2012 at 08:37 PM 0
Share

Can be that just your splash screen under "player settings" is in the wrong orientation?

avatar image Richard 3 · Sep 27, 2012 at 12:23 PM 0
Share

No, $$anonymous$$y Splash screen is fine. Thanks anyway.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Scryed · Sep 27, 2012 at 02:50 PM

Do you have auto-rotation on by default? I had a similar issue when developing for Android a while ago, essentially launching the splash screen in portrait because that's how i was holding the device when I deployed. For whatever reason, auto-rotation took its job VERY seriously, even though the portrait orientations were unchecked!

If this is the case, set the default orientation to landscape right on iOS or landscape left on Android. Then in any awake function that's called upon entering the main game, call the following code:

Screen.orientation = ScreenOrientation.AutoRotation; Screen.autorotateToLandscapeLeft = Screen.autorotateToLandscapeRight = true; Screen.autorotateToPortrait = Screen.autorotateToPortraitUpsideDown = false;

Hope this works!

Comment
Add comment · 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

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

11 People are following this question.

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

Related Questions

Play remote video landscape on Portrait app 1 Answer

How to test with iPad 4.2 Simulator? 1 Answer

Specifying a high quality background image for iPad 1 Answer

Is is possible for Unity 3D smartphone app to support multiple orientations 1 Answer

Why do I get lower framerate in Portrait than I do in Landscape? Can I fix this? 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