Search Unity

Scripts revert back to older state

Discussion in 'Editor & General Support' started by Shack_Man, Dec 10, 2020.

  1. Shack_Man

    Shack_Man

    Joined:
    Jun 7, 2017
    Posts:
    372
    Sometimes when working in Unity and Visual Studio, my scripts revert back to an older state. I never had this issue and don't have any more details yet when this happens. Took me a while to know this really is happening and I'm not just going insane. So the changes are minimal, meaning it probably goes back to the last time I hit the play button.

    Has this happened to anyone else and do you have an idea where this might come from?

    Before the revert happened, the changes I made to one of the scripts did not show in the editor, it seemed like they didn't get recompiled at all. Then I clicked around a bit and it worked, but the changes in the script were gone..

    I am using version 2020.1, it happened in the 2020.2 preview as well. I am using source tree / git but this can't be it as it happens when sourcetree is not running.