[Help] Unity 6 UI Toolkit scale breaks in IL2CPP builds when windows HDR is enabled

In Unity 6000.0.25f1 I have been encountering a problem with UI toolkit UI scaling when HDR is enabled on my 4k monitor. It was tested with HDR enabled on a 1440p ultrawide and it scaled correctly, but at 4k, HDR seems to break the UI document’s scaling.

It does however work and scale correctly when HDR is disabled on all monitors.

For context this is in an IL2CPP in HDRP.

Added images for reference.

Thank you in advance for any help and/or suggestions.

This seems to be a bug and I would greatly help if you could submit a proper bug report with a small
reproduction project if possible.

1 Like

I am having this issue as well. Overlay UI is completely broken on my HDR monitor, any resolution, non HDR monitors and editor work fine. Using unity 6000.0.22f1 Enabling HDR output in HDRP and on the monitor results in UI stretched and offscreen, unusable. Disabling HDR in HDRP or on the monitor allows the UI to work normally but the visuals are a lot worse

I will add that everything was working fine in my proj with HDR up until setting the game to fullscreen. Do not use Screen.SetResolution, it is completely bugged. You should never change the resolution from windowed mode, that is the only thing that works on windows and unity 6 currently, anything else can crash and destroy your whole project. Set windowed in the player settings, and never run Screen.SetResolution in game or you’ll face serious issues