Asset Bundle Main asset is null

I’m trying to load a streamed scene using asset bundle.
How do i do it.
Building the asset bundle is as follows

string[ ] levels = { “Assets/Scenes/main.unity”,};

BuildPipeline.BuildPlayer( levels, “assetBundle/main.unity3d”, BuildTarget.WebPlayer , UnityEditor.BuildOptions.None );

Then i put the bundle in dropbox for testing purpose.

This is the download script

WWW www = WWW.LoadFromCacheOrDownload ("https:// dropbox link here ", 1);

when www.isDone how do i load the scene i.e. main.unity3d

www.assetBundle.mainAsset is null

Application.LoadLevel(“Main”); throws error

What am i doing wrong?

Any help would be appreciated!!!

may be the problem is in your name “main” and “Main”

@shethheta yes that was the problem… i figured it out later … thanks for the reply. :slight_smile: