UWP Fullscreen by default on Windows 10 Desktop?

With the older Windows Store 8.1 SDK, games would run fullscreen automatically.

But I’m noticing that with the UWP 10 SDK on Windows Desktop PCs, games run in a window.

Is there a setting in Unity to get UWP 10 games to run fullscreen by default?

Or do I have to add code to VS project to switch to fullscreen when the game starts?

Maybe there’s an obvious setting that I’m just not seeing?

Try Unity - Scripting API: Screen.fullScreen and pass true, but even then, there’s no guarantee that UWP application will enter fullscreen, because under the hood we use ApplicationView Class (Windows.UI.ViewManagement) - Windows UWP applications | Microsoft Learn

In other words, OS can still decide that it will not run your app in fullscreen.

Note though, if Windows is running in tablet mode, your application will run fullscreen mode by default.

1 Like

Thanks @Tomas1856 , I forgot that tablet mode even existed!

That code example will come in handy too.

I’m not sure if this will help you, but you can try adding

ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.FullScreen;

inside the Initialize function of your App.cs script (which is auto-generated by Unity).