How to create a Assetbundle of low size
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
Answer by abibarte · Nov 25, 2019 at 06:52 PM
Hi , i has the same problem , some one have a solution ? or another way to download the materials o textures , and images ?
thanks alot
Your answer
Follow this Question
Related Questions
I can't find the Assets/Build AssetsBundle 1 Answer
Why does the AssetBundle needs the assets to be present in the folder? 0 Answers
Addressables build failing due to Lua scripts and then for an unknown reason 0 Answers
Are My AssetBundles Being Unloaded On Me Without My Doing So? 0 Answers
How does Addressable assets load from local works specialy for webgl? 0 Answers