Search Unity

Window as transparent overlay not working since 2018.3.0b12

Discussion in '2019.1 Beta' started by vestigial, Dec 6, 2018.

  1. vestigial

    vestigial

    Joined:
    May 9, 2015
    Posts:
    37
    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)?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,452
    What happens exactly when you run that code?
     
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,452
    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.
     
  4. roykoma

    roykoma

    Joined:
    Dec 9, 2016
    Posts:
    122
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,452
    I just fixed this on Friday. It's going to be in one of 2019.1 patches soon.
     
    ben_sheftel and vestigial like this.
  6. vestigial

    vestigial

    Joined:
    May 9, 2015
    Posts:
    37
    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!
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,452
    By the way, you need to UNCHECK that checkbox for transparency to work :). It's checked by default.
     
    ben_sheftel likes this.