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 vikingfabian-com · Jan 21, 2016 at 09:49 AM · webplayerassetbundlewwwweb

Web build: WWW downloads correctly, but www.assetBundle is Null

  • I have a bundle of about 10 .bytes files.

  • I follow the Unity WWW example.

  • I get www.isDone=true, and www.bytesDownloaded is the correct size, so it downloads something.

  • www.assetBundle is always null.

  • I use Dropbox Public folder as Server.

  • I get no error messages.

      void Start()
         {
             StartCoroutine(LoadBundle());
         }
         
         IEnumerator LoadBundle()
         {
             string downloadPath = FilePath.Url() + FilePath.Dir +
                 DataLib.AssetBundlesDir + FilePath.Dir + "mainbundle";
         
             using (WWW www = new WWW(downloadPath))
             {
                 yield return www;
                 if (www.error != null)
                     throw new Exception("WWW download had an error:" + www.error);
                 AssetBundle bundle = www.assetBundle;
         
                 Debug.Log("wwwResult: is done: " + www.isDone.ToString() +
                     ", progress: " + www.progress.ToString() + ", bytesDownloaded: " + www.bytesDownloaded.ToString());
         
                  // www.isDone is true
                 //www.bytesDownloaded are correct
                 //but www.assetBundle is Null
                     
             }
         }
     
     
     
    
Comment
Add comment · Show 3
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 fct 509 · Apr 04, 2016 at 05:43 AM 0
Share

I seem to be having the same issue. Have you found a solution to this problem?

avatar image vikingfabian-com fct 509 · Apr 04, 2016 at 01:38 PM 0
Share

Sorry, I have not

avatar image fct 509 vikingfabian-com · Apr 04, 2016 at 06:20 PM 0
Share

I did some more testing last night, and found that it looks like the WWW item stopped downloading the file before it finished. I don't know why, but the WWW object kept insisting that it finished download the file despite the number of bytes downloaded being less than a tenth of the size of the file.

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

38 People are following this question.

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

Related Questions

yield on WWW? or AssetBundleRequest? or both? 2 Answers

Bytes array always empty in WWW object (on WebPlayer) 0 Answers

asset bundles download problem 0 Answers

AssetBundle not loaded in webplayer after refreshing page 0 Answers

What kind of error handling does the WWW class have? 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