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

Resolved Load scene from cloud in cache

Discussion in 'Addressables' started by nnton3, Feb 24, 2021.

  1. nnton3

    nnton3

    Joined:
    Sep 8, 2017
    Posts:
    14
    Hi all, how can I load and save scene from cloud. I don't want to run it. I want to save it to the cache.
    I use this for load:
    Code (CSharp):
    1. sceneRef.LoadSceneAsync(LoadSceneMode.Single);
    and scene activate in game.
    My task is to download the scenes the same way I download the rest of the content. But I can't use this for scene:
    Code (CSharp):
    1. Addressables.LoadAssetsAsync<Scene>("Scenes", handleResult);
     
  2. unity_OSeBXw9aivkTJg

    unity_OSeBXw9aivkTJg

    Joined:
    Jul 8, 2019
    Posts:
    19
    You can use this:
    Code (CSharp):
    1. Addressables.DownloadDependenciesAsync
     
  3. nnton3

    nnton3

    Joined:
    Sep 8, 2017
    Posts:
    14
    This method load all content for key?
     
  4. unity_OSeBXw9aivkTJg

    unity_OSeBXw9aivkTJg

    Joined:
    Jul 8, 2019
    Posts:
    19
    We are using it to download all the data for an addressable scene, and it works.
     
  5. nnton3

    nnton3

    Joined:
    Sep 8, 2017
    Posts:
    14
    Thanks for ur reply, it's work for me too