assetBundle
Streams an AssetBundle that can contain any kind of asset from the project folder.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.UnityWebRequestWWWModule
public AssetBundle assetBundle { get; }
Remarks
Additional Resources: AssetBundle
Examples
using UnityEngine;using System.Collections;public class ExampleClass : MonoBehaviour{ IEnumerator Start() { using (WWW www = new WWW("https://myserver/myBundle.unity3d")) { yield return www; // Get the designated main asset and instantiate it. Instantiate(www.assetBundle.mainAsset); } }}