In this recipe, we will load an Asset Bundle, and retrieve a prefab, then create (Instantiate) a GameObject in the scene from the retrieved data:
Loading resources from Unity Asset Bundles
Getting ready
This recipe uses the files created by the previous reciple. We have also provided a copy of folder AssetBundles in 10_07 folder.
How to do it...
To load Unity Asset Bundles, do the following:
- Create a new 3D Unity project.
- Import the provided folder AssetBundles.
- Create the following C# AssetBundleLoader script class and add an instance as a component of the Main Camera...