Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Unity Asset Installer override my files in a strange way

Discussion in 'Assets and Asset Store' started by mkgame, Jun 6, 2014.

  1. mkgame

    mkgame

    Joined:
    Feb 24, 2014
    Posts:
    592
    Hello,

    i try to explain what i did. So, it is about the Arons pathfinding asset. I installed the free version at first and then I changed a file, then i moved it to my own directory and renamed the file for sure. After i bought the pro version and imported it to my project, the importer overwrote the renamed file in my own uniqe folder. Aron said, that the importer works in this way.

    At this time i lost 4 days work, where i wrote a priority based intelligent formation functionality for an RTS game based on Arons pathfinding. It was partially my guilt, because i didn't uploaded it to my SVN repository.

    I know that we don't write a security system, or a more serious tool, but, isn't it the basic and most dangerous mistake what a tool can do, deleting private stuff without asking before? Has anyone the same experience? Can I somehow unlink the files from its references to the certain asset to avoid data lost at the next asset update?
     
  2. TonyLi

    TonyLi

    Joined:
    Apr 10, 2012
    Posts:
    12,523
    Sorry to hear it. It's terrible to lose work.

    Every asset in Unity has metadata with a unique identifier (GUID). This include scripts. When you import a package, it goes by the GUID. If you're going to modify a file, make a copy first by selecting the file and pressing Command-D/Ctrl-D. The copy will get a different GUID. Then modify the copy, not the original.

    It's also a very good idea to back up your project before importing any new or updated packages. I know this isn't much comfort right now since you've already lost your work, but keep it in mind for the future.