Search Unity

Question Compiling project moves script back to previous position.

Discussion in 'Editor & General Support' started by Dtimer0, Feb 17, 2024.

  1. Dtimer0

    Dtimer0

    Joined:
    Jun 2, 2023
    Posts:
    1
    So I have a script that I moved from one folder to another, reattached it to the object, deleted the old one, and continued writing. But now, whenever I compile, it puts the script back in the old position.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,686
    Sounds like either you have some Editor scripting doing that, or more likely you are using a drive mirroring service like Google Drive or One Drive or something.

    Drive mirroring is explicitly not supported by Unity. Use properly-configured source control to back up your data.