Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by casimps1 · Jan 13, 2012 at 06:12 PM · mobiledownloadwebfilesbasic

How to download game content (DLC) for storage and use later

I'm considering how to make a mobile game that would involve packages of downloadable content for the game. The idea is that the game would include some small free content package (think additional images and sounds) with the initial app download, and then you would be able to purchase and download additional content packages later. I am targeting mobile devices, so in-app purchases would be ideal (as opposed to a bunch of separate apps on the app store).

Now, I know I could just put all of my content packages into the app and unlock them in code via a simple "if package purchased" check, and if I have to, I'll do that. However, I'd rather not because I expect to produce a lot of different content packages (each of non-trivial size) and think that many customers will only want a few of them. So, forcing all customers to download all packages would be a huge waste of space. Additionally, that would mean that I would have to do an app update every time I released a new package, and customers who don't want any new packages would be forced to download increasingly large app updates.

So, my other idea is that I would place these content packages out on a server somewhere. Then, I'd get an in-app purchase to trigger a download using the WWW class which would then download the package and store it permanently in the Resources folder. Then, every time the app starts it would scan the Resources folder for downloaded packages and present those packages to the user as options.

The idea sounds somewhat like what I've read about AssetBundles, but I only have access to the Basic version of Unity now anyway and AssetBundles are a Pro feature. I also don't see what AssetBundles offers over the basic WWW class if I'm just downloading images and audio. WWW already seems able to create AudioClips and Texture2Ds from downloaded web content.

Does this downloadable package idea sound possible without Pro? Has anyone else done it? Any thoughts on the specifics of how to do this? (tutorial would be awesome) Is there a better way to handle this than what I've thought of?

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image homer_3 · Aug 26, 2012 at 04:02 PM 0
Share

Did you ever get anywhere with this?

avatar image casimps1 · Aug 27, 2012 at 04:23 AM 0
Share

This was for a side project that has been on hold for a while. So, no, I haven't actually worked on it. I have done some more research since the original post though and I feel fairly certain now that I can do this with just the WWW class and Unity Basic.

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by DaveA · Aug 27, 2012 at 04:33 AM

Yes I have done this with basic. Asset Bundles basically provide you a pre-digested (imported) version of the assets. And scripts, btw. They just drop right in. With WWW you basically are writing importers for your assets, and hooking up scripts, well, that's another matter. It can be done, it's not easy or fun.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image casimps1 · Aug 27, 2012 at 04:48 AM 0
Share

Nice! So, I'm curious. Did you package your assets up into some kind of single archive (ZIP) file that was then put on the server and then the app would process that file locally? Or did you host each asset as its own separate download?

At first I thought about doing a big ZIP file to $$anonymous$$imize download size, but then I realized that you'd need twice as much local space to be able to decompress it. Plus, with images and audio I wouldn't be able to get a great compression ratio anyway.

avatar image DaveA · Aug 27, 2012 at 04:53 AM 0
Share

Individual resources zipped where it makes sense. Need to cache them in memory so they don't get redownloaded in the same session. Web player cannot cache such things to disk though.

avatar image
0

Answer by DiebeImDunkeln · Feb 23, 2015 at 04:18 PM

I'm now in the same situation like casimps1 but I have the pro version available. I'm working on a round based board game for IPad and Android tablets.

My problem is, that I have to download the file with a kind of preloader and instantiate them later when they are needed.

All examples that I find instantiate them directly after the download and delete the assetbundle after doing this.

Next questions is, how can I make my testing with my editor and keep the prefabs inside the editor.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

8 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

iOS open docx file from Application.persistentData 2 Answers

How to access my download I puchased 1 Answer

Webview for Android 1 Answer

Localization on mobile 0 Answers

como please how can I open my file.unityweb 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges