Hi. I have a Unity 3.5.7 project that requires an update. As the application was designed around an iPhone 4, i would like to keep the same aspect ratio of 960x640 for all iPhone devices. I figured it would be as simple as modifying some of the dimensions in the AppController.mm, however, they seem to take no effect.
Note the application orientation is locked to landscape left. The following modification have been made to AppController.mm
// line 355 in CreateSurface(EAGLView *view, EAGLSurfaceDesc* surface)
newSize.width = 1.5 * newSize.height;
// line 523 in OpenEAGL_UnityCallback(UIWindow** window, int* screenWidth, int* screenHeight, int* openglesVersion)
rect.size.height= 1.5 * rect.size.width;
// line 729 in ContentRectForOrientation( ScreenOrientation orient )
screenRect.size.height= 1.5 * screenRect.size.width;
With these changes made the application is still rendered the entire size of the screen on an iphone 5 and not the 960x640 I require.
I am really stuck on this so any assistance would be really appreciated.
Thanks