# assetBundle

> Streams an AssetBundle that can contain any kind of asset from the project folder.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.6/script-reference/unityengine.md)
* **Assembly:** UnityEngine.UnityWebRequestWWWModule

> **Warning:**
>
> **Deprecated.** Use UnityWebRequest, a fully featured replacement which is more efficient and has additional features

```csharp
public AssetBundle assetBundle { get; }
```

### Remarks

```csharp
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);
        }
    }
}
```

Additional Resources: [AssetBundle](/engine/6000.6/script-reference/unityengine/assetbundle.md) class.
