You can also use UnityEngine.Screen.SetResolution() API with fullscreen parameter set to true, but ultimately user can still get the application out of fullscreen - you cannot prevent it.
On the other hand, it seems that Microsoft wants Windows 10 games and apps to be able to run in windowed mode, so what you should probably do is add a āfull screen on/offā button somewhere in your settings. Like in good old games
You could maybe also make a screen blocking overlay, which says āgo to full screenā (and a button that turns full screen on) if itās not in full screen. But Iām not sure if Microsoft would approve this.
Hi,
Anyone integrate video interstitial ads which are released recently by Microsoft on windows 8.1 universal application?
if any one knows please reply to this one.
Is there any reason Unity doesnāt do this. Windows 10 Store games are now able to switch to full screen, like Fable Legends for example. It opens full screen window and then opens full screen, which I have tried to mimic what Fable Legends does, but it will always be small Window (or last set if already run previously) then switch to full window screen.
While I understand the logic behind what MS are trying to do, Unity 3D on the other hand is just making our lives harder.
Letās say, in App class constructor. It will make the app start up in fullscreen.
Thereās one gotcha: if you have debugger attached, the window will still open up as windowed at first for a few seconds, while debugger is loading symbols and doing other stuff. That will not happen if you launch manually without a debugger.
But, wouldnāt it be nice for a check box in player settings that wrote that code for you! I prefer to see Unity be proactive in making simple things like this easier, rather than having to make changes to the code. Especially when one can simplay delete that and create from fresh.
It might do, just I am still getting the hang of VS. I spent most of my career in the Java space.
Anyway I did end up working it out, by googling it.
However, I ran into an issue that I canāt work out. If I modify the app.cs file and build from there I have no issues in it working in full screen, but if I rebuilt it from Unity the code is missing from the app.cs file. But it still compiles and runs in full screen mode as if the that snippet of code is there. This became problematic as I wanted to focus away from the full screen for now and couldnāt find how to bring it back to a window.
Is there some form of caching going on here that I may need to be aware of?
I was thinking the same thing, so I made it a window while the game was running and then closed it down as normal behaviour is to then to open last window size. But it always opens full screen as if that code was being run to make it full screen.
this will launch in fullscreen mode; however, the user has the ability to change this and once it āhasā been changed, there is no simple way to force it back as this is controlled in the XAML front-end. You would need to use the bridge between Unity and XAML to provide an option in-game mode to switch it back if the user changes it. (which I have not done myself yet).