Search Unity

Accessing Asset-bundles across the scenes

Discussion in 'Asset Bundles' started by Lalitsharma81, Feb 4, 2021.

  1. Lalitsharma81

    Lalitsharma81

    Joined:
    Jun 19, 2020
    Posts:
    13
    Hey all
    I am kinda trapped in a particular issue.

    My scenario is :

    I have a few asset bundles which I am downloading from CDN and saving into my local storage.

    I have 2 scenes ItemList, and Show model.

    I am loading my asset bundles in Scene ItemList to display the item lists prefab and when the user taps on the item prefab app starts Show-model Scene.

    Show model Scene, I have to load the models present inside the bundles which I already loaded in the Item List scene. However, I am unable to do so as I am getting an error that a bundle with that name has been already loaded into memory.

    My general question is :
    1: How can I pass the reference / get the list of my already loaded bundles across the scenes?
    2: If I get references how to use them to extract required assets from the bundle again?