Unity startup orientation handling issue in iOS8 Cross screen bug

Source: Internet
Author: User

The author's project has been developed under Unity 4.3, and recently, after upgrading to Xcode6, testing on iOS8 devices found an interesting phenomenon:

Originally running a normal horizontal screen game, to the IOS8 device, became a vertical screen operation, and is still the content of the horizontal screen, the UI is a miserable. Device orientation settings in unity and Xcode are always "lanscape left" and "Lanscape right"

Unity has now been officially resolved in release 4.5.3P1 version of the issue, for the 4.5 version of children's shoes is very convenient, directly on the latest patch is good

Unfortunately, there is still no official solution for the Unity 4.3 release.

After a few searches and attempts at the forum, we finally took the temporary solution:

Modify the iphone_orientationsupport.mm file to the following two sentences in line 10th and 11-

 case landscapeleft:         return  cgaffinetransformmakerotation (m_pi_2);  case landscaperight:        return cgaffinetransformmakerotation (-m_pi_2);

Replace with-

 case landscapeleft:         return  cgaffinetransformidentity;  case landscaperight:        return cgaffinetransformidentity;

The problem is temporarily resolved.

Unity startup orientation handling issue in iOS8 Cross screen bug

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.