Quantcast
Viewing all articles
Browse latest Browse all 312

AssetBundles Unity5 (No AssetBundle has been set for this build)

Hi, i have saw the changes in Unity5 assetbundles export methods. However i need to create assetbundles in a script and run that script from command line. In unity 4.6 it worked. I was trying to create assetbundles with this example : @MenuItem("Test/Build Asset Bundles") static function BuildABs() { // Create the array of bundle build details. var buildMap: AssetBundleBuild[] = new AssetBundleBuild[1]; buildMap[0].assetBundleName = "enemybundle"; var enemyAssets: String[] = new String[1]; enemyAssets[0] = "cube_prefab"; buildMap[0].assetNames = enemyAssets; BuildPipeline.BuildAssetBundles("Assets/ABs", buildMap); } It should create assetbundles using some building map. I created a simple cube , made a prefab from it and called it cube_prefab. When i run this script i just get a warning No AssetBundle has been set for this build.

Viewing all articles
Browse latest Browse all 312

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>