Search Unity

ARFoundation - AR catalogue app with 800 products

Discussion in 'AR' started by newguy123, Apr 16, 2020.

  1. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248
    Hi guys

    We're building an app to showcase products (800 products). When the app starts, the user will choose which product he wants to view, then it will be placed on plane.

    The question is, how do we handle 800 models? Simply have 800 prefabs ready to go into a gameobject with a modelmanager script holding 800 variables, then the chosen one gets placed?

    Wont that eat a lot of resources?
     
  2. newguy123

    newguy123

    Joined:
    Aug 22, 2018
    Posts:
    1,248
    I thought perhaps Asset Bundles, but sounds like that's old news.
    New thing now is Addressables.

    Any hints on how that works or how to implement it?
     
  3. jirayusr

    jirayusr

    Joined:
    Mar 13, 2020
    Posts:
    1
    do you plan to use TAG to group those 800 products? And will you intend to display all those 800 products at the same time? I believe this will consume all your resources.
     
  4. Alexis-Dev

    Alexis-Dev

    Joined:
    Apr 16, 2019
    Posts:
    121
    Hello,
    I think you can use the new Addressable system with remote asset.

    You create a addressable group for each gameobject (to create multi AssetBundle), store each AssetBundle on Google Cloud/AWS/Azure.

    The user will download and instantiate the bundle from remote when he select the product.

    I will use a similar way in a future AR app. To help you, look at this videos and the addressable documentation.

    Best,
    Alexis
     
    jirayusr and newguy123 like this.