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 unity200 · Jan 17, 2012 at 03:11 AM · iphoneassetbundleserverdownloadipad

Best way to load information from server?

What is the best way to load information mapped to a Game Object from a server? Objects in my game will have extra data and information attached to them but this information will be on a server and fetched at run time via the use of asset bundles if they're needed. As far as I'm aware asset bundles can not contain scripts so how do I do this?

To further elaborate, the player will walk up to an object and upon selecting it, an asset bundle is downloaded and the information about the object displayed.

It needs to be done this way as I'm developing for the iPhone/ iPad so don't want to waste memory on having information preloaded when it might not be needed.

Any advice would help, thanks.

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 by0log1c · Jan 17, 2012 at 03:34 AM 1
Share

Woah, I'll just lay out my thought. Well if you're doing this to save weight, its the models, audios and textures that you want to strip out of the main build, not scripts. Finally the base idea is probably to use WWW to download AssetBundles containing your models and assets. Then add the scripts already in the main build using AddComponent(). Finally get your new models data either as .txt inside the AssetBundles or download it using WWW/WWWForm and some WebPortal/SQL. Note that all that takes time and should be initiated before the player actually needs it.

avatar image unity200 · Jan 17, 2012 at 08:32 PM 0
Share

Thank you. That seems very helpful and is exactly what I'm look for. I'll give it a go and see what happens.

If it's not too much trouble could you elaborate on how exactly to load the data using WWW/WWWForm. I've read their references but am still not sure exactly how to proceed here.

0 Replies

· Add your reply
  • Sort: 

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Download content from server without AssetBundles 2 Answers

How to export to IOS 2 Answers

Iphone downloadable content restrictions 1 Answer

Large asset bundle can't decompress 0 Answers

Asset Bundles download at runtime 1 Answer


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