- Home /
Question by
pritambarhate · Jan 15, 2015 at 03:05 PM ·
native plugin
Unity3D : iOS native plugin - UnityGetGLViewController's view has wrong dimensions in iOS7
I am writing an iOS plug in for a 2D game in Unity 4.6.1. The game runs in landscape orientation. I am testing this on iPad. For some reason on iOS 7, the view of the viewcontroller (obtained by UnityGetGLViewController) returns the width as 768 and height as 1024, when width should be 1024 and height should be 768. On iOS 8 the width and height are reported correctly.
Is this iOS7 specfic? Will it be same for an iPhone running iOS7? Can I just detect OS version and reverse the reported numbers for width and height? I unfortunately don't have access to an iPhone running iOS 7 as of now. Any help will be greatly appreciated.
Thanks.
Comment