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
1
Question by robhuhn · Nov 04, 2010 at 09:02 PM · rotationiphoneorientation

Unity iPhone/iPad autorotation

I know it is possible to rotate the unity view instantaneously without any animations. Now I would like to look behind the scenes. Why doesn't Unity support an animated rotation like other 'native' apps do? Is it because OpenGL ES or some other core stuff doesn't support that?

Is it possible to implement an autorotation with animation manually? Often it is hard to try to adjust the rotation of different UIViews to unity's interesting autorotation.

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

2 Replies

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

Answer by thomasw · Jul 27, 2011 at 08:57 AM

According to the Unity 3.4 announcement, support for this was added to Unity 3.4. However, it doesn't appear to work "automatically" even after changing the player settings. It looks like some scripting support is still required.

http://unity3d.com/unity/whats-new/unity-3.4

edit: See the discussion here on how to get this working: See the discussion here on how to get this working: http://answers.unity3d.com/questions/46492/ios-smooth-auto-rotation-of-orientation.html

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
avatar image
1

Answer by Le_nain · Aug 03, 2011 at 08:57 AM

No scripting required, it's only that you would have to REMOVE some script if you did handle rotations already via iPhoneSettings.screenOrientation = iPhoneScreenOrientation.LandscapeLeft; for instance.

Otherwise you only need to enable it under Default Orientation -> Auto Rotation in the Player Settings (and make sure once this is done, the newly displayed Use Animated Auto Rotation checkbox is enabled).

DISCLAIMER: Don't be too enthusiastic about this new feature, it is not really prefect atm. Please do read http://forum.unity3d.com/threads/98993-Unity-3.4-Portrait-Landscape-Autorotate-on-iOS-looks-bizarre

[EDIT] Forgot to mention that as thomasw stated, this is brand new from Unity 3.4 (thought it might be nice to mention it since the the question was written quite a long tim ago)

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

2 People are following this question.

avatar image avatar image

Related Questions

Rotating doesn't work correctly? 2 Answers

A node in a childnode? 1 Answer

Making unity play nice with iPad and multiple interface orientations 1 Answer

Does UNity iPHOne work 1.7 work with the new iPhone 4 os? 1 Answer

How do I pause and unpause my game on the iPhone? 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