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

Creating AssetBundles at runtime

$
0
0
I want to make a command line Unity script so I can build asset bundles on my server, which can later be downloaded into the game. Some of my test models are rather high poly, so I need to enable inflated mesh in order to get a proper MeshCollider using convex to work. Ideally, I want this to be done before uploading the model so that it can be done once only. However, I honestly don't know how to create AssetBundles at runtime. I know how to do it using it manually by hand in the editor, but this is not what I'm looking for. [MenuItem("Assets/ Build AssetBundle")] static void BuildAssets() { BuildPipeline.BuildAssetBundles(@"Assets/AssetBundles", BuildAssetBundleOptions.ChunkBasedCompression, BuildTarget.StandaloneWindows64); }

Viewing all articles
Browse latest Browse all 312

Trending Articles



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