Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Addressables for Level Packs

Discussion in 'Addressables' started by mcdenyer, Jul 6, 2023.

  1. mcdenyer

    mcdenyer

    Joined:
    Mar 4, 2014
    Posts:
    48
    I am trying to better understand Addressables/Asset Bundles

    I want the user to be able to reach points in my game where another say 100 levels is unlocked.
    At this time I want to load the 100 levels to their phone that can then be loaded into memory(the single level of the 100 they are about to play, not all 100) at the point they want to play one of the levels.

    Is this possible? From a high level what are the steps I need to take to accomplish this.
     
  2. Jribs

    Jribs

    Joined:
    Jun 10, 2014
    Posts:
    154
    Yeah thats what addressables are for.

    High level your scenes are addressables, you build the addressables, and you load the scene using the addressables load function at which point it will download the required addressables from your cdn or whatever and load it.

    Or you could force it to download a bunch at once, like some games do "hold on we need to get the next 100 levels for you since youre so good!", and then it downloads all of them right there so you can load them faster.

    It handles all the nitty gritty for you.
     
  3. mcdenyer

    mcdenyer

    Joined:
    Mar 4, 2014
    Posts:
    48
    @Jribs The 'download a bunch at once' part is it possible to do that a single time or do they have to download them all every time the reopen the app?
     
  4. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    5,842
    mcdenyer likes this.