Unity AssetBundle Manager help

Hi, I’m new to using Asset Bundles and have been reading the posts regarding the AssetBundle Manager:

My problem is that I can’t seem to even get past the first step of “building” the assets. I’ve assigned assets in the inspector to new asset bundles, but when I try build an Asset Bundle by going to Assets > AssetBundles > Build AssetBundles, I get this error:

ArgumentNullException: Argument cannot be null.
Parameter name: path2
System.IO.Path.Combine (System.String path1, System.String path2) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Path.cs:115)
AssetBundles.BuildScript.BuildAssetBundles () (at Assets/AssetBundleManager/Editor/BuildScript.cs:20)
AssetBundles.AssetBundlesMenuItems.BuildAssetBundles () (at Assets/AssetBundleManager/Editor/AssetbundlesMenuItems.cs:27)

The null argument in this case is coming from this line in BuildScript.cs:
string outputPath = Path.Combine(Utility.AssetBundlesOutputPath, Utility.GetPlatformName()); where Utility.GetPlatformName() returns null. Anyone have any idea what’s going on here? I’m running Unity 5.4.2.f2 and macOS Sierra.

Check the Utility.cs file (Likely located at “Assets/AssetBundleManager/Utility.cs”). The definitions are in there. It’s not a system class, it’s included with the Asset Bundle Manager files. I had to add an entry for tvOS myself. You’re probably missing a BuildTarget entry.

1 Like