Search Unity

Deploy game with some asset bundles already cached

Discussion in 'Editor & General Support' started by Game-Whiz, Jul 2, 2016.

  1. Game-Whiz

    Game-Whiz

    Joined:
    Nov 10, 2011
    Posts:
    122
    Hi,

    Is it possible to build an iOS/Android build with some asset bundles already cached?

    My game will download asset bundles from a webserver, but I'd like to have some of those bundles already in the game. This way my code will be generic and always use WWW.LoadFromCacheOrDownload, even for bundles that were already included in the game package.

    Is this possible?

    Cheers,
    Alex
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Yes, the popular practice is to place them under StreamingAssets. The bundles will then be accessible locally.