I’m using 5.3.5f1 with target of iOS.
I created a new asset bundle name (first in the project) and assigned my prefab to it in the drop down.
When I run the editor script to create the asset bundle from the docs, it shows the loading bar but then fails and throws the error:
Cannot mark assets and scenes in one AssetBundle. AssetBundle name is "underthesea".
UnityEditor.BuildPipeline:BuildAssetBundles(String, BuildAssetBundleOptions, BuildTarget)
AssetBundles.BuildScript:BuildAssetBundles() (at Assets/AssetBundleManager/Editor/BuildScript.cs:24)
AssetBundles.AssetBundlesMenuItems:BuildAssetBundles() (at Assets/AssetBundleManager/Editor/AssetbundlesMenuItems.cs:27)
I don’t have any scenes in an asset bundle, I searched the project for scenes and went through each, none are assigned to an AB.
I haven’t built any asset bundles yet, it’s failed since my first attempt, I only have 1 asset bundle name and have assigned the prefab and the materials/textures it contains to the same assetbundle. Then try to build and it gives the error after a bunch of warnings (below).
And I’m getting hundreds of warnings prior to the error for things that aren’t even related to the model I’m trying to add to an asset bundle, it’s trying to add vuforia scripts and stuff when there isn’t a single script on the content I’m adding to AB’s:
Unrecognized assets cannot be included in AssetBundles: "Assets/Plugins/iOS/VuforiaRenderDelegate.h".
UnityEditor.BuildPipeline:BuildAssetBundles(String, BuildAssetBundleOptions, BuildTarget)
AssetBundles.BuildScript:BuildAssetBundles() (at Assets/AssetBundleManager/Editor/BuildScript.cs:24)
AssetBundles.AssetBundlesMenuItems:BuildAssetBundles() (at Assets/AssetBundleManager/Editor/AssetbundlesMenuItems.cs:27)
Script assets cannot be included in AssetBundles: "Assets/Content/Scripts/Utility/PlayerPref.cs".
UnityEditor.BuildPipeline:BuildAssetBundles(String, BuildAssetBundleOptions, BuildTarget)
AssetBundles.BuildScript:BuildAssetBundles() (at Assets/AssetBundleManager/Editor/BuildScript.cs:24)
AssetBundles.AssetBundlesMenuItems:BuildAssetBundles() (at Assets/AssetBundleManager/Editor/AssetbundlesMenuItems.cs:27)
edit::
I tried making a new asset bundle name “undertheseacontent”, went through and set everything to it instead of the “underthesea” name, and have triple verified that nothing is assigned to “underthesea” anymore but rather “undertheseacontent”, and I still get this error above!
I can filter by “underthesea” and it doesn’t find anything other than the object I’m using to set the flag to filter for, when I change the item to undertheseacontent the object disappears from the “b:underthesea” search filter, but I still can’t delete “underthesea”