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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Download scene with addressables without start scene (PUN)

Discussion in 'Addressables' started by JeremieB5, Aug 27, 2021.

  1. JeremieB5

    JeremieB5

    Joined:
    Nov 30, 2016
    Posts:
    4
    Hi there !

    I implement addressables in my networked (PUN2) project. It almost works but I am stuck with something with scenes.
    My scenes are on a remote server, I can download it or directly LoadSceneAsync. But in my case, I need to download first the scene with DownloadDependenciesAsync (or something else?) and load it in order to have the scene added to available scene (as if it would be in build settings or load from assetBundle). But at this moment I don't want to player go in the scene because scene management is done with Photon (PhotonNetwork.LoadLevel(sceneName), based on SceneManagerLoadScene() ) with automatically sync scene between player, where MasterClient only can switch scene for all.

    Is there a way to do this ? Maybe get downloaded asset bundle from downloaded addressable or something ? Or use build asset bundles and store them on my server and download them ? But addressables would be useless or redundant ...
    For now, I don't use cache for this but the next step would be keep caching downloaded scenes and be able to load theme from cache.

    Thanks for your help !

    Jeremie
     
  2. fauzanmagnus

    fauzanmagnus

    Joined:
    Apr 11, 2022
    Posts:
    3
    did u found solution for this ?