- Home /
Windows 8 auto-rotation causes game to hang
I'm running it on an Asus Transformer Book T100 (Windows 8.1). The game hangs(not responding in task manager) when the device auto-rotates while the game is running. The only way to close it is to terminate the process from task manager.
When building as Windows/Mac standalone, the player settings doesn't have any setting for autorotation. Is there a way I can prevent auto-rotation on Windows 8.1 when the game is running or exit the program.
Answer by tswalk · Jun 17, 2014 at 06:50 AM
While I believe the guidelines for Windows Store Apps says to support orientation changes, it also provides fixed-layout recommendations.
http://msdn.microsoft.com/en-us/library/windows/apps/hh465349.aspx
However, you should be able to restrict the orientation change within the app manifest designer (settings) or via code:
Answer by SteelArrow21 · Jun 17, 2014 at 06:38 AM
Edit>Project Settings>Player
Click the black phone
Click "Resolution and Presentation"
Then choose the orientation you want.
Then go to File>Build Settings
Change the platform to Windows Phone 8
Im not sure if the device can be considered a phone, but its worth a shot.
Orientations are set to portrait in all three mobile settings, makes no difference when building standalone windows exe.