Setting Android orientation without a manifest??

Hi all,

I’m trying to build an APK file for internal release. The app is supposed to run in landscape mode, so I specified Landscape Left in Unity. But I’m not uploading this app to Google Play or anything like that, just making a .apk file.

And the app runs in Portrait rather than Landscape…

Is this the expected behavior? Can I set Screen.orientation to landscape in code instead, or something like that?

You can set the Orientation in your scripts:
http://docs.unity3d.com/Manual/AndroidMobileAdvanced.html

You can control screen orientation by setting Screen.orientation to one of those, or to ScreenOrientation.AutoRotation

If you set Landscape Left in the Player Settings, this gets applied to the manifest, and should work on the device. You can override it in the scripts.