I'm working on a file-size reduction pass for one of our projects. As I got to the NGUI sprite atlases, I realized it was at 2048x2048 with a file size of 21.3mb. Pretty massive! So I started looking at how I could reduce its size and chop the art into multiple files - however when looking at the image, I would say 80% of it was empty space. For some reason, NGUI had laid out the sprites down the left side, and across the bottom. The result was a 2048x2048 atlas image, that only actually needed to be 1024x512. Separating this into multiple atlases seem a little silly right now, as it looks like it will do the same thing and give me extra-large atlas images even if I split the sprites to other atlases.
QUESTION 1: Why is NGUI creating such inefficient atlas images? Is there a setting I can change so it will pack the imagery to fill all that empty space?
In addition to that, I also ended up removing some uneeded assets from that atlas. While it did remove them - it did not rebuild the atlas image. So now I have a 2048x2048 atlas image where the top 512x1024 is completely empty.
QUESTION 2: How do I make NGUI force-rebuild an atlas so that it moves around the sprites to fill empty space whenever I remove old sprites from atlas?
Thanks in advance!