AssetBundle (DLC) data load to Android phone at runtime [UNITY] [duplicate]

独自空忆成欢 提交于 2019-12-08 09:18:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!