I have a problem with the change of orientation from Landscape Left to Portrait in Vuforia 2.0 for iOS in Unity.
I use this for orientation change:
Screen.orientation = ScreenOrientation.Portrait;
In Vuforia 1.5 it all still works great. It also works with Android with Vuforia 2.0. Only it does not work with Vuforia 2.0 with iOS.
This is the log output from XCode:
OpenGLES error 0x0502 in /......./Classes/iPhone_GlesSupport.cpp:224
OpenGLES error 0x0502 in /......./Classes/iPhone_GlesSupport.cpp:224
OpenGLES error 0x0502 in /......./Classes/iPhone_GlesSupport.cpp:224
.......
The app does not crash, but the GUI is not shown. :(
What's the problem?
What has changed in Vuforia 2.0?
Why does the error not in Android?
Regards,
Russel
Maybe you have to use WaitForSeconds() when screen orientation change like this http://answers.unity3d.com/questions/202636/screen-orientation-change-notification.html?