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

How to force an Addressable scene to load from cache

Discussion in 'Addressables' started by adbourdages, Oct 5, 2020.

  1. adbourdages

    adbourdages

    Joined:
    Jul 8, 2012
    Posts:
    75
    Hello,

    I can only assume there is a way to do that but I can't figure it out. I'm using Addressable scenes for different skins. I would like to be able to load an addressable scene from cache even if there is a new version to download (download size > 0).

    How to do that?

    The motivation is two-fold and related to mobile: 1) give the choice to the player whether to update the skin when starting a game or not and 2) as a fallback if there are network problems (it happen all the time on mobile).

    Scenario
    - Player A loads the game, install Skin S1 and plays
    - Developer publishes an update to Skin: S2
    - Player A loads the game again, sees there is an update to the Skin (S2) (via catalog update) but elects not to download it now (because it is on cellular data for instance)
    - I would like the game to load S1
     
    Fangh likes this.