Defaulting to webplayer build settings

Hi

I’m using the Unity build assetbundle script (from here: http://docs.unity3d.com/Documentation/Manual/abfaq.html#Creating%20an%20AssetBundle):

using UnityEngine;
using UnityEditor;

public class ExportAssetBundles {
    [MenuItem("Assets/Build AssetBundle")]
        static void ExportResource () {
            string path = "builds/AssetBundles/myAssetBundle.unity3d";
            Object[] selection =  Selection.GetFiltered(typeof(Object), SelectionMode.DeepAssets);
            BuildPipeline.BuildAssetBundle(Selection.activeObject, selection, path, BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets);
    }
}

and everytime I build an asset my project build settings change to webplayer - why is this happening?

regards
Garrett

I encountered the same problem. You probably already fixed it, but in case someone else has that problem, here’s a solution:
http://answers.unity3d.com/questions/486620/assets-bundle-for-ios.html?sort=oldest