Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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 Zuecafajm · Jul 15, 2015 at 07:20 PM · unity5assetbundlewww

Errors When Loading AssetBundles With Concurrent WWW Calls (Unity5)

Hello,

When loading asset bundles with www calls I am getting several errors:

Error Popup

Which goes along with this error in the console:

 Closing file :  : mem:/UnityWebStream-15/__lock

The following error only occurs when loading asset bundles containing materials.

 The AssetBundle 'file://C:\TestLoading\Assets\Bundles\material.pc' can't be loaded because it was not built with the right version or build target.
 UnityEngine.WWW:get_assetBundle()
 <LoadMaterial>c__Iterator2:MoveNext() (at Assets/Scripts/Loader.cs:71)
 

The errors only occur when attempting to load more than one bundle at a time. They errors also happen inconsistently, but happen more frequently the more objects you are trying to load simultaneously. Having to load a single bundle at a time is not ideal since it increases loading time.

I created a test project that causes the errors. It contains 3 asset bundles and attempts to load them simultaneously. The first two bundles are game objects that are instantiated. After they are created a material is loaded and assigned to the objects.

To run the example load the main scene and press play. There is an option on the "Loader" component on the object called "Main" to only load one bundle at a time. If this is checked the error does not occur.

Sample Project

Has anyone dealt with these errors, and were you able to find a solution that gives you the benefit of being able to load more than one object at a time?

Thank you for your help.

error.png (8.4 kB)
testloading.zip (205.1 kB)
Comment
Add comment · Show 1
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 Sekai92 · Oct 28, 2015 at 01:14 PM 0
Share

i have same error but sometimes work i dont know why, looks like Unity bug or somethings

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Loading images from AssetBundle 1 Answer

Assetbundle materials? 1 Answer

AssetBundle not loaded in webplayer after refreshing page 0 Answers

Exporting assets from Unity 5 to Unity 4 1 Answer

2D toolkit dynamically load scenes with the new assetbundle of Unity5 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