Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Addressables, SpriteAtlas and Late binding.

Discussion in 'Addressables' started by Chris-Trueman, Nov 29, 2022.

  1. Chris-Trueman

    Chris-Trueman

    Joined:
    Oct 10, 2014
    Posts:
    1,260
    I am making a card game that has many different decks. I put each deck into its own sprite atlas and then make that sprite atlas addressable and they are not included in build. Each deck's card sprites are named the same Ace of Spades in one deck/atlas is Ace of Spades in the rest of them.

    When I assign a sprite from an atlas to a sprite renderer and play the game using late binding, as long I load the sprite atlas that the sprite was assigned from it works fine. However it doesn't load the sprite from any other atlas.

    I read somewhere that this should work to swap the sprites. Can I do this? Or do I have to assign the sprites manually?