Search Unity

Bug [2022.2 Windows] [SOLVED] Unity Takes Application Focus on Domain Reload

Discussion in 'Editor & General Support' started by tiimmie, Jan 18, 2023.

  1. tiimmie

    tiimmie

    Joined:
    Feb 21, 2020
    Posts:
    2
    Whenever I make a change in Visual Studio, Unity reloads the domain (as expected), but also takes application focus. This used to not happen - I think it started when I updated to 2022.2. This is hugely detrimental to my workflow. Is there a way to disable this?
     
  2. tiimmie

    tiimmie

    Joined:
    Feb 21, 2020
    Posts:
    2
    UPDATE: I figured out why! It's because of the code coverage window. It's very needy and wants focus whenever the domain is reloaded. As long as the code coverage window is somewhere in the main Unity window, it will grab focus on domain reload. I'm not sure why this is happening so suddenly, I haven't updated the package in a while. Either way, it's not a big deal for me to just get rid of the code coverage window and open it just when I need it. Hopefully this helps anyone who has this issue.
     
    ThisIsNoZaku likes this.