TIL Xbox UWP Basic Fixes

goldenxp

Sunder Iyer

Posted on April 7, 2021

TIL Xbox UWP Basic Fixes

2021-04-06

There are two basic issues when you output a Unity game to Xbox as a UWP application. The first one is the visible white edges (tv overscan) and the second one is the mouse pointer.

Most of the official docs describes solutions for C# XAML but Unity only supports IL2CPP for UWP builds.

To address this change, you need to edit app.xaml.cpp instead.

App::App()
{
    InitializeComponent();
    Application::Current->RequiresPointerMode = ApplicationRequiresPointerMode::WhenRequested; // mouse mode off
// 
void App::InitializeUnity(String^ args)
{
    ApplicationView::GetForCurrentView()->SuppressSystemOverlays = true;
    ApplicationView::GetForCurrentView()->SetDesiredBoundsMode(ApplicationViewBoundsMode::UseCoreWindow); // overscan fix
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
goldenxp
Sunder Iyer

Posted on April 7, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

TIL Xbox UWP Basic Fixes
todayilearned TIL Xbox UWP Basic Fixes

April 7, 2021