Question by
GameMechanics · Nov 21, 2017 at 07:29 PM ·
c#compile
Running old code
For some reason I make changes in the code and it still runs an old version of the code. I select the C# file in the editor and it displays the new code. I added some new code to print a debug statement and after about 10 runs it finally showed up. Now I can't get rid of it. I edit the file just to make it recompile and nothing happens. The new code is displayed in the editor but does not run. The old code is still running. Any help here?
Comment
Visual Studio. It is not all files, just the one. And it just started happening. There was another file but I stopped working on that file so it doesn't matter. The fix I found is to quit Unity and re-run it. I am using Unity 2017.1.1f1 (64-bit) on Windows 7.
Your answer