Search Unity

  1. Unity 2020.2 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    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:
    55
    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.
unityunity