Search Unity

Using sprites from Unity SpriteAtlas, when the source sprites are from a spritesheet?

Discussion in 'General Graphics' started by hungrybelome, Oct 1, 2020.

  1. hungrybelome

    hungrybelome

    Joined:
    Dec 31, 2014
    Posts:
    336
    Hi,

    I have a Unity SpriteAtlas that includes sprites that come from a source spritesheet:

    Unity SpriteAtlas:


    Source spritesheet:


    When sprites are used in my UI, they are used from the source spritesheet, rather than my custom Unity SpriteAtlas. This causes the entire source spritesheets to be included in builds, when I only want the sprites that I use in my SpriteAtlas.

    Is there a way to force using the sprites from Unity SpriteAtlas?

    Thanks!