问题
I'm using Asset Browser of Unity. I want to reduce my game. So I should make Asset Bundle(DLC) and when i click download button in phone, datas will download and load to phone as permanantly, it will download at once, after that user can play as offline. I builded my data in Asset Browser. how can i load it?
回答1:
First, you need to build the asset bundles (with Asset bundle browser) and put them in a server that is publicly accesible. You need to use UnityWebRequest in your game to download your assetbundle from the server.
https://docs.unity3d.com/Manual/UnityWebRequest-DownloadingAssetBundle.html
Or you can use Unity Asset Bundle Manager (EDIT: Looks like Unity removed it from the asset store)
However, I have found this awesome tool, that I am actually using too, and it does a way better job. Just read the README, it is pretty straightforward. You just have to set the URL of your bundles, and then download bundles by specifying their name.
https://github.com/SadPandaStudios/AssetBundleManager
来源:https://stackoverflow.com/questions/50173173/assetbundle-dlc-data-load-to-android-phone-at-runtime-unity