When working with Visual Studio, I quite frequently have an issue where the recent changes I made to a script are not applied in Unity.
Thus, Unity is running a previous version of my script, one that I saved before and not the latest saved script.
This can be quite frustrating because I’m never really sure if Unity is using the current version of the script I see in Visual Studio or if it’s using a version of the same script that I previously saved.
Rebuilding the solution or saving several times does not fix the problem, I must add a Debug.Log(“Is this the last version of the script?”); to know that it’s updated for sure. Most of the time adding a line of code works to fix the issue.
Is there something I can do to have Unity and Visual Studio sync up properly?
PS: I’m using Visual Studio 2015.