Search Unity

Bug Unity automatically duplicates assets

Discussion in 'Editor & General Support' started by helium97, Sep 5, 2021.

  1. helium97

    helium97

    Joined:
    Nov 12, 2019
    Posts:
    10
    Hello everyone.

    I have a pretty annoying issue with my Unity (2020.3.15f2). The problem is that sometimes it duplicates assets automatically, without touching anything. Usually it does that with scripts, but also with scenes...

    I really don't understand why.....
     
  2. mabulous

    mabulous

    Joined:
    Jan 4, 2013
    Posts:
    198
    It can happen when you rename a script in unity but have it still open under the old name in visual studio and then save it
     
  3. helium97

    helium97

    Joined:
    Nov 12, 2019
    Posts:
    10
    I don't know... I have tried to delete VS cache, but scripts and scenes continue to delete/multiply... Sometimes scripts deletes also in the inspector.
    Is very difficult to work like that
     
  4. helium97

    helium97

    Joined:
    Nov 12, 2019
    Posts:
    10
    I think I may have solved it.

    The directory of the project was synchronised with iCloud, once I changed directory, the problem disappeared...