- Home /
Question by
fseydel · Apr 21, 2015 at 02:52 PM ·
unity 5assetbundlebuildassetbundle
No AssetBundle.mainAsset with BuildingAssetBundles in 5.x ?
Hi folks.
In Unity 4.x we used BuildPipeline.BuildAssetBundle to build an AssetBundle. The first parameter was the mainAsset:
mainAsset Lets you specify a specific object that can be conveniently retrieved using AssetBundle.mainAsset.
But as BuildAssetBundle is now marked obsolete we use BuildPipeline.BuildAssetBundles in Unity 5.x. But this function has no parameter mainAsset. And I can't find a "Set main asset" option in the AssetBundle authoring tools either.
Question: Is there another way to set the mainAsset parameter for each AssetBundle in Unity 5.x?
Comment