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

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?

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.

1 Like

Thanks for posting you solution, just figured out that I have been experiencing this on an off because of the Multiplayer Playmode window.

Just a PSA if anyone else is here looking for the same answer I was.