I don’t know if this was ever supported functionality so I haven’t filed it as a bug, but the ability to make your built player have a transparent background and show the underneath desktop contents (or other windows), works in 2018.3.0b12 but not in 2019.1.0a11.
Specifically the project linked here
[SOLVED!] Windows: Transparent window with opaque contents (LWA_COLORKEY)?
What happens exactly when you run that code?
It looks like it got broken because DwmExtendFrameIntoClientArea function doesn’t work with flip-model swapchains, and in 2019.1 we switched our D3D11 implementation to use flip-model swapchain because it is more performance and supports technologies like GSync and FreeSync. Can you file a bug on it? We will probably add an option in player settings or a command line flag to opt out of flip-model swapchain.
5 Likes
I just fixed this on Friday. It’s going to be in one of 2019.1 patches soon.
2 Likes
Just got the email:
“I just wanted to let you know that your bug has been fixed and should no longer be reproducible in the upcoming 2019.1.7f1, 2019.2.0b6, 2019.3.0a2 versions. The fix was to add a checkbox to player settings (“Use DXGI Flip Model Swapchain for D3D11”) that makes the Standalone player use old (pre 2019.1) behaviour”
Heartfelt thanks to everyone that worked on this. And a big dose of sympathy for the other 99.9% of Unity users that will have no idea what this really scary sounding checkbox is for!
1 Like
By the way, you need to UNCHECK that checkbox for transparency to work :). It’s checked by default.
1 Like