Game Development Community

iT2D 1.5 - Orientation functions missing in template (ITGB-293)

by Ronny Bangsund · in iTorque 2D · 11/10/2011 (3:02 am) · 1 replies

Build: 1.5 final
Platform: iOS 5.0.1 beta, iPod touch 4th generation
Target: Any
Issues: Creating an orientation change-aware iPod/iPhone project gives you a scripts/game.cs with a vestigial oniOSChangeOrientation() which does nothing, and the console will complain about missing oniOSOrientationToLandscapeRight() and oniOSOrientationToLandscapeLeft() functions.

Steps to repeat:
1.Open the editor.
2.Create an iPod/iPhone project.
3.Set it to landscape in Project settings.
4.Enable rotation.
5.Save.
6.Open in Xcode and run on device.
7.Watch debug console.
8.The existing orientation function does nothing (it's obsolete). It will instead try to call individual functions for each orientation.

Suggested fix: Just add functions with the correct names and remove the catch-all function that never gets called.