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

Dependencies and sprites

Discussion in 'Asset Bundles' started by mrm83, Nov 7, 2018.

  1. mrm83

    mrm83

    Joined:
    Nov 29, 2014
    Posts:
    345
    I have a bit confused on what is going on. Here is my problem.

    I have 2 bundles,
    Common - contains a sprite packed sheet
    Item - contains an object that depends on the sprites from Common

    When the game runs, the item sprite is "missing".
    Now, this only happens if I unload(false) the common bundle, if I dont unload the common bundle, the sprite is shows fine.

    If item has a reference to common, why would unload remove the sprites?

    #update
    I found out the problem was in my loop..
    I was unloading the dependent bundle before my item bundle was loaded. so the item bundle's sprite was in fact missing.
     
    Last edited: Nov 7, 2018