简体   繁体   English

(Unity android游戏)如何为android游戏进行额外下载?

[英](Unity android game) How to make the additional download for android games?

I have a storybook kind of app, when people bought extra story i need somehow to download the extra content as a additional download. 我有一个故事书类的应用程序,当人们购买了额外的故事时,我需要以某种方式下载额外的内容作为额外的下载。 can some one elaborate how can i do that from unity (cause i'm using unity to build the app). 可以详细说明一下如何从统一中做到这一点(因为我使用统一来构建应用程序)。 how to bundle the assets and how to make it as a extra download. 如何捆绑资产以及如何进行额外下载。

Let's say you have a button that is greyed out for not containing the data. 假设您有一个因为未包含数据而变成灰色的按钮。 That button contains a script checking if there is data at a location. 该按钮包含一个脚本,用于检查某个位置是否有数据。

The user purchases the item and then starts the download. 用户购买商品,然后开始下载。 The data are stored at the location where the button will search for most likely at Application.persistentDataPath. 数据存储在按钮最有可能在Application.persistentDataPath上搜索的位置。

The actual data are stored on your server at a url. 实际数据存储在服务器上的URL中。 Most likely a secured url requiring a login system (could be Azure or AWS). 最有可能需要登录系统的安全URL(可以是Azure或AWS)。

Next time the button is started it will look at the location and find the data. 下次启动按钮时,它将查看位置并找到数据。 It is now active. 现在处于活动状态。

Downloading could be made easy with AssetBundle so you can download a whole scene into it. 使用AssetBundle可以使下载变得容易,因此您可以将整个场景下载到其中。

https://docs.unity3d.com/Manual/AssetBundlesIntro.html https://docs.unity3d.com/Manual/AssetBundlesIntro.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM