From the course: AR Development Techniques 04: Advanced Techniques

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Downloading asset bundles into the app

Downloading asset bundles into the app

From the course: AR Development Techniques 04: Advanced Techniques

Start my 1-month free trial

Downloading asset bundles into the app

- [Instructor] In the previous video, we saw how to create AssetBundle files and upload them to the cloud storage. In this video we'll write some code to fetch those AssetBundles, unpack them and retrieve the furniture models. So let's do that. First let's create a scripts folder. And I'll create a new script C# script and I'll name this AB loader. Short for AssetBundle loader. Open the script. We'll write the code to download AssetBundles inside coroutines. So let's create three coroutines for three different furniture models. So I'll create an IEnumerator and name this, sofa. We'll create one for chair and one for table. Now to download the AssetBundles through the network, we'll first have to import the networking library using UnityEngine .Networking. So inside this we'll write UnityWebRequestAssetBundle .GetAssetBundle. This function needs three arguments. First one is the link to the…

Contents