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

Sprite Atlas are not working in Asset Bundles

Discussion in '2D' started by massiveminiteam, Apr 1, 2021.

  1. massiveminiteam

    massiveminiteam

    Joined:
    Aug 28, 2018
    Posts:
    109
    We have a setup with a few asset bundles. I moved all the sprites to different sprite atlas assets within these bundles and disabled the "Include in build" option. The sprite atlas assets are loaded at the start of the game, added to a dictionary and if the SpriteManager requests a sprite atlas I will look in the dictionary and fetch the sprite atlas.

    This seems to work, because I get the sprite atlas registered callback short after this.

    Problem: I don't see any sprites from any asset bundle sprite atlas. The sprite atlas assets which are not in the asset bundle are working like they supposed to.

    Is there anything that I'm forgot to implement? The documentation is not that great for these feature, but I thought I found everything I need from other forum threads.

    Untiy version: 2019.4.23f1