Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by normantran86 · Sep 27, 2011 at 11:32 PM · ioscrashassetbundleloadfromcacheordownload

Using AssetBundles as IAP Crashing

Hi, we're creating an iOS game and want to create IAP assetbundles that the user can buy and then download from our servers.

Basically when the user has bought the IAP and loads up the "Level Select" Scene for the DLC levels, we use WWW.LoadFromCacheOrDownload("http://where.we.are.hosting/our.assetbundle", 1); to download or load from cache the 60 levels we've created for the build.

Then we call Application.LoadLevelAsync("NameOfDLCLevelSelect") ; to start the first scene. Now this works if I build from the Editor into XCode and then from XCode onto my iOS Device. It still works if I build from XCode again.

However, if I make changes in the editor and then rebuild from editor -> xCode-> device and attempt to call WWW.LoadFromCacheOrDownload("http://where.we.are.hosting/our.assetbundle", 1); again, xCode says my level, "NameOfDLCLevelSelect" does not exist in the build settings. Then the app crashes with a bad-access exception.

If I delete the app from the device and rebuild from XCode, then it works.

I'm concerned that this is what would happen to a user if they were to update their app from the iTunes Store. Arguably, the same thing happens if you download a new version of the app and retain all the app data, right?

Comment
Add comment
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

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

2 People are following this question.

avatar image avatar image

Related Questions

Crash on iOS after upgrading to Unity 4 1 Answer

Crash when destroying scene object loaded from AssetBundles 5 Answers

WWW Crashing on IOS 4.3.3 for unity4 4 Answers

Load Asset from cache clash at ios device ( 5.6.2p1 ) 0 Answers

IL2CPP Crash on Instantiate(gameObject) 2 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