- Home /
Is is possible for Unity 3D smartphone app to support multiple orientations
Is is possible to create a smartphone (iOS and/or Android) app with Unity that supports both landscape and portrait orientations? By support I mean that the app gets notified that the orientation has changed and can adjust layout accordingly.
For example, with the Monkey Island iOS games you play the game in landscape and when you put the game into portrait it displays a menu. Would something like that be possible in Unity?
Answer by Anxo · Jun 01, 2011 at 04:12 PM
Yes,
Check Devise Orientation in the documentation. You can continuously check how the device is oriented and change your game accordingly.
Wouldn't continually checking device orientation be bad for performance? Is there a way to get notifications that the orientation has changed?
@thomasw: there are no notifications. You can just check Input.deviceOrientation a few times per second; it won't have any effect at all on performance.