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

Hwo To Use Spriteatlas With Assetbundle? Bugged?

Discussion in 'General Discussion' started by tiancaiwrk, Apr 12, 2019.

  1. tiancaiwrk

    tiancaiwrk

    Joined:
    Nov 23, 2017
    Posts:
    35
    hey all, their is a big problem about SpriteAtlas.
    I did test : create a uiBtn SpriteAtlas and set my sprites to it, and a Scene that with UI Image reference the sprites, then I build AssetBundle, and load the scene, I did load all assetbundles, but the UI Image shows nothing......
    This is what I set the SpriteAtlas,


    The scene in Editor is like this :


    But use AssetBundle it is nothing shows:


    My assetbundle is SpriteAtlas and sprites all set to atlas/uiBtn.ab


    And all AssetBundles loaded, then load scene is no Sprite!!!


    What tht hell?
    Thanks for any reply
     
  2. tiancaiwrk

    tiancaiwrk

    Joined:
    Nov 23, 2017
    Posts:
    35
    And EditorSettings -> SpritePacker Mode is Always Enabled
     
    codestage likes this.
  3. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    10,083
    Ryiah likes this.