Since the latest version our game is always in portrait on my HTC One running Android 5.0.2.
Ok. A couple of questions:
- What are your width and height project settings?
- Do you have “dynamic orientation” checked in project settings?
- Are you using GUI layouts?
Also, are you running on the dev-app or bundle?
- Width: 768, Height: 576
- It doesn’t matter if I check it or not, the same happens (and by the way, even if I have it unchecked the orientation changes on iOS when rotating the device)
- All my GUIs only have the Default layout
I am using the dev-app
I tried bundling now, but it crashes. I will start a separate thread about that.
After managing to bundle I can say this does not happen after bundling. The bundled application is presented in landscape and does not change on rotation (as expected and desired). I have not yet tried if bundling prevents rotation on iOS as well.
Ok, great that you got it working. The dev-app is currently not behaving 100% like bundled app.
Actually, I am not sure I would consider it working, only that the bug is only in the dev-app. Since our game is in landscape mode, that means I can not use the dev-app and bundling and deploying each time I want to test new features on Android is not a very agile way to work…
Can’t you rotate the game into the correct orientation after launch in the dev-app?
No, the dev-app stays in portrait. Thought I had been clear on that, but realize now that wasn’t the case… (on iOS it changes orientation on rotate, so this only goes for Android)
Ok, I’ll file a bug on this. Thanks!