I am upgrading my project from 4.6 to 5.1. It uses AssetBundels and I have an editor window to create these AssetBundles.
But the code is obsolete:
BuildPipeline.BuildAssetBundle(null,
assets.ToArray(),
path + item.GetValue("id"),
BuildAssetBundleOptions.CollectDependencies | BuildAssetBundleOptions.CompleteAssets,
BuildTarget.WebPlayer);
I understand how the new system works. But I don’t want to set everything up in my editor window and then manually set everything for the assetbundles again in the editor (my script also makes JSON with various information that cannot be stored in an asset bundle, so that still has to be done).
Is there a way to do all the settings through code?