Search Unity

Loading Sprites from Asset Bundle breaks Images

Discussion in 'Editor & General Support' started by Privateer, Jan 20, 2019.

  1. Privateer

    Privateer

    Joined:
    Jun 5, 2016
    Posts:
    21
    I've made some asset bundles out of sprites. Each sprite is HD and there are 4 sequences of 1500 of them. I made every sequence into an asset bundle. Everything works fine until I try to load and display the sprites. What I get is a broken image with the wrong colours.

    Can anyone help?
     
  2. andymilsom

    andymilsom

    Unity Technologies

    Joined:
    Mar 2, 2016
    Posts:
    143
    We do not have any know issues that sound like this.
    There are a lot of variables that can impact what we are seeing. If you can create a bug report demonstrating the issue in a project and link me I can look into it.
    The spriteAtlas texture is built into an AssetBundle in a similar manner to any other Texture. However it can be affected by Packing modes. First try setting Packing mode to "Always Enabled" and see what the impact is. (Rebuild the AssetBundles) This may give a clue as to what may be happening.
     
  3. Privateer

    Privateer

    Joined:
    Jun 5, 2016
    Posts:
    21
    Do I have to make a sprite atlas before making an asset bundle? Because each image is 1920x1080.
     
  4. andymilsom

    andymilsom

    Unity Technologies

    Joined:
    Mar 2, 2016
    Posts:
    143
    In this case, assuming you have not set any packing tags or included it in an Atlas asset. the "Atlas" Texture will be the source image.
     
unityunity