Hi every body.
Actually i use this for creating assetbundles:
[MenuItem("AssetBundle/Build AssetBundles Prototipo")]
static void BuildAllAssetBundles() {
string carpetaBundlesPrototipo = "Assets/Materialspace";
Directory.CreateDirectory(carpetaBundlesPrototipo);
AssetBundleBuild[] buildMap = new AssetBundleBuild[2];
buildMap[0].assetBundleName = "materialspace";
buildMap[0].assetNames = new[] {"Assets/modelos/materialspace.prefab","","" };
//BuildPipeline.BuildAssetBundles(carpetaBundlesPrototipo, buildMap, BuildAssetBundleOptions.ChunkBasedCompression, EditorUserBuildSettings.activeBuildTarget);
BuildPipeline.BuildAssetBundles(carpetaBundlesPrototipo, buildMap, BuildAssetBundleOptions.UncompressedAssetBundle, EditorUserBuildSettings.activeBuildTarget);
Debug.Log("Building bundles for");
}
But if i use the "BuildAssetBundleOptions.UncompressedAssetBundle" or "BuildAssetBundleOptions.ChunkBasedCompression", My archive have a long size like a 16 mb , and the real size of my asset it's of 500 kb , so some one have a solution o have the same problem resolve ?
Iwill be gratful
↧