Unity 5 - AssetBundle - BuildAssetBundles scene dependencies.

Hi there.

I’ve been playing with AssetBundles for a WebGL build and noticed that scene dependencies are not included in AssetBundles when using the BuildPipeline.BuildAssetBundles(“AssetBundles”) editor function.

Is that how it’s supposed to work?

Since BuildAssetBundleOptions.CollectDependencies has been made obsolete in Unity 5, I assumed it would work out of the box, but the AssetBundle manifest has 0 file listed in dependencies + my scene loads just fine, but is empty.

My scene has two sprites and they appear if I right click on the scene and “select dependencies”, but they won’t be built in the AB with the following class:

using UnityEditor;

public class prbCreateAssetBundles
{
    [MenuItem("Assets/Build AssetBundles")]
    static void BuildAllAssetBundles()
    {
       
        BuildPipeline.BuildAssetBundles("AssetBundles");
    }
}

Any clue?

I noticed that too… I have a feeling since scenes can’t be mixed with other assets in asset bundles, then the dependencies like materials will just be in the scene object in the AB, it just won’t show in the manifest.