Correct way to use Sprite Atlases?

Is the use of a Sprite Atlas supposed to be completely transparent to other components? i.e. Do I still reference the sprites individually via an Image script?

The reason I ask is, while doing some R&D on building something for WebGL, I noticed that both the sprite atlas AND THE INDIVIDUAL SPRITES are being included in the build. Something is wrong here, but maybe it’s me.

Portion of my editor log showing the atlas and the individual sprites being included in the build:

3161809--240580--Screen Shot 2017-07-27 at 11.01.13 AM.png

I’ve been seeing similar problems with using the new Sprite Atlases in Asset Bundles. It not only appears to bundle the individual sprites, but a bundle containing a variant atlas seems to have a dependency to the bundle containing the master atlas. This makes me very sad.

any update on this?

According to the Unity Answers post, duplicated sprite assets in memory is solved by deleting the Library folder and restarting Unity.

BTW, the following forum post could be of interest as well:

1 Like