Quantcast
Channel: Questions in topic: "assetbundles"
Viewing all articles
Browse latest Browse all 312

How to create a Assetbundle of low size

$
0
0
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

Viewing all articles
Browse latest Browse all 312

Trending Articles



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