Search Unity

Editor automatically refreshing when auto refresh is turned off

Discussion in 'Editor & General Support' started by Aaron-Meyers, Sep 7, 2019.

  1. Aaron-Meyers

    Aaron-Meyers

    Joined:
    Dec 8, 2009
    Posts:
    305
    I just installed Unity on a new machine and I turned auto refresh off in my preferences, but I've noticed that Unity is not only automatically refreshing, but its also doing it before the Unity app even has focus. As soon as I save a source file with a change, Unity will begin recompiling without even alt-tabbing back to it.

    I prefer to control when compilation happens.

    The only thing really different on my new computer from my old is that Unity installed Visual Studio 2019 whereas before I was using Visual Studio 2017. Other than that I'm running Unity 2019.2.0.

    Any one know how to stop this from happening?
     
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,618
    It's an option in visual studio tools for unity. It causes unity to compile when you save files in visual studio. Just look at the visual studio tools for unity options in visual studio.
     
    Aseemy likes this.
  3. Aaron-Meyers

    Aaron-Meyers

    Joined:
    Dec 8, 2009
    Posts:
    305
    thanks... that worked!
     
    Peter77 likes this.
  4. EthanFischer

    EthanFischer

    Joined:
    Feb 10, 2016
    Posts:
    46
    I'm still getting this issue when disabling auto refresh and the option in VS tools for unity. Using VS 2019 and Unity 2019.4.16. I even get it when disabling VS Tools entirely

    Help!
     
  5. Aseemy

    Aseemy

    Joined:
    Aug 22, 2015
    Posts:
    207
    Same. But after restarting visual studio it worked.