Search Unity

SpriteAtlases keep changing their hash without sprites changing, polluting source control

Discussion in '2D' started by mh114, Oct 3, 2019.

  1. PedroSchabib

    PedroSchabib

    Joined:
    Oct 2, 2015
    Posts:
    10
    I have the same problem in Unity 2019.3.0f6. Every time I play the project, a new atlas is created for my sprites. And I noticed that this problem also generated a size of 3.6 GB of the "AtlasCache" folder. I was able to reduce this size to 6Mb by deleting the "Library" folder and re-porting the project. But that did not stop Unity from generating new Atlas each time it was played in the Editor.
    I use Anima2D in my project, I don't know if it can be related.
     
  2. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    277
    Hi @PedroSchabib
    Once the sprites are packed into a SpriteAtlas and there are no changes to both the Sprites and SpriteAtlas settings, it should never pack again as long AtlasCache folder remains. Also please ensure that there are no tools/plugins that could modify Sprite data. If its not the case, kindly submit a bug report with a simple repro project..
     
  3. PedroSchabib

    PedroSchabib

    Joined:
    Oct 2, 2015
    Posts:
    10

    I'm not sure but is possible Anima2D is responsible for this behaviour. I think Anima2D modify Sprite data everytime at I press play or in Editor.
    whatever, this problem don't happen in version 2019.2.8f1
    Thankyou
     
  4. Venkify

    Venkify

    Unity Technologies

    Joined:
    Apr 7, 2015
    Posts:
    277
    Please post/submit a simple repro project. We will take a look.
     
  5. PedroSchabib

    PedroSchabib

    Joined:
    Oct 2, 2015
    Posts:
    10
    Hi Venkify, I found the problem in my project. Is a conflict from Anima2D and 2D Animations plugins. I was creating a Sprite Mesh from Anima2D and a Skin in Skinning Editor from same Sprite. It´s forced the Editor to create a new Sprite Atlas everytime.
    Sorry, It´s my fault.
    Very Thankyou for atenction.
     
unityunity