Hi all
Busy converting our project from the old Sprite Packer to the new Sprite Atlas system and getting unexpected results when inspecting the profiler:
- Sometimes ALL 13 atlases load (nothing ever unloads)
- Somtimes ALL 13 atlases load AND the 1500+ individual sprites load (nothing ever unloads)
- Somtimes only the NEEDED atlases load (unneeded atlases unload)
- Somtimes only the NEEDED atlases AND the 1500+ individual sprites load (individual sprites never unload)
I expect ONLY the NEEDED atlases to load into memory and UNLOAD when not needed like it was doing perfectly with the old Sprite Packer. What am I doing wrong?
Now I have somewhat got it working in editor (loads only needed atlases, but it’s also loading a handful of individual sprites too, even thought they are also loaded in the atlases).
However on Android it loads ALL atlases. Can one not unload/destroy atlases? How does one check if they are needed or not?
I seriously need an admin to shed some light on this or at the very least link me to the Scripting API page, because I can only find the Manual page.
BUMP
Also, I have found several bugs relating to the atlases:
- Sometimes duplicating an atlas corrupts it, in a way that pack preview does not work and Unity does not include the atlas on runtime. Renaming the atlas sometimes fixes this for some reason, but also causes it.
- Sometimes changing any setting on the atlases causes Unity to crash.
- Sometimes clicking pack preview causes Unity to crash.
All my atlases were created in the same way and each only has 1 folder of sprites attached to it (each folder has below 20 sprites), yet each of the atlases behave differently (some cause Unity to crash, others don’t, even though they all have exactly the same setup).
The new sprite atlas system still has a lot of problems.
- Editor crashes / runtime crashes with include in build unchecked.
- Built-in atlases are duplicated into asset bundles. (our app size sky-rocketed)
- Atlases compare hashes for repacking every time you hit ‘play’
I’m having similar problems, enchiridion could I ask you how you were able to figure out which atlases were being loaded? And how you managed to fix that in the editor? Have the latest updates helped? I have a huge amount of art in my game and I’m not sure if that’s the problem or if it’s because of the atlases. Thank you!