Granted, this is the first time I’ve tried to export in this format, so I might be missing something crucial. Any suggestions on where I need to start to fix this?
Yeah, it builds everything else right; it even builds Windows Phone 8 right. It just doesn’t want to build Windows Store at all. Also, I don’t know anything about Visual Studio, to be honest.
This is Unity 5.1.1f1, running on Windows 10, with Visual Studio Community 2015 version 14.0.23107.0 D14REL
I don’t know how to use Visual Studio, but I tried to ‘deploy’ it and got an error saying it couldn’t because “the package requires architecture ARM, but this computer has architecture x64”.
Okay, I was able to get it to run in Visual Studio by switching it to x86. It now appears to run all right, except that my options for changing the resolution in-game don’t work (it only allows it to go at whatever resolution the window was when it started, and doesn’t have any other available options), and it won’t let me click outside the window to manually resize it at all, or to change apps without alt-tab.
You should be able to switch resolutions in-game. How are you doing it?
But seems you’re expecting Standalone application behavior from Windows Store Apps, if that so, then you should know Windows Store Apps are different from Windows Standalone applications.
So the way I’m doing it is, I’m making a Resolution array called ‘allres’, in which I’m storing Screen.resolutions, and then determining which of the resolutions is the current one. Then I have some controls set up to just increase or decrease an integer to reference the index of the array, and apply the changes when you’ve chosen the one you want.
What it appears to be doing (I’m assuming) is not actually pulling anything from Screen.resolutions, otherwise it would be putting something into the allres array.
I’m sure there’s probably a different way I should be doing it for Windows Store apps…
I think it’s expected, that Screen.resolutions doesn’t return anything on Windows Store Apps, because the D3D window in Windows Store Apps is stretchable, so basically so you can set any resolution you want.
Sorry for the late reply. The problem is that the game won’t look right at all resolutions. Is there any way to prevent resizing, or force an app to run fullscreen? Or at least force an aspect ratio?