Before Enter Play Mode Auto Refresh Setting

Hey, I’m a programmer and like to have Unity in a manually only refresh mode. That way when I save files in Visual Studio it won’t automatically prompt unity to recompile the project as soon as I switch back to unity to check the console, which I do fairly often while debugging issues. However, every so often I end up accidentally hitting play without refreshing leading to the changes I made in Visual Studio not being applied. I don’t want to go to one of the existing Auto Refresh modes (found on Preferences → Asset Pipeline) as all of them will at best end up refreshing the project when it isn’t running which will lead to me having to wait for stuff to recompile when I didn’t yet mean for it to do so. Ideally, there would be an option to “Auto Refresh Before Entering Play Mode or Running Tests” (name could probably be improved) where just before Unity enter Play Mode it will Auto Refresh and apply any found updates before starting play mode. And will have a similar effect before you start running either Play More or Edit Mode tests in the Test Runner. Thanks!

2 Likes

Until then: https://discussions.unity.com/t/859030/19 please read the thread and the details before potentially use any of that code.