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
0
Question by vajagicb · May 30, 2013 at 12:31 PM · asset bundles

Failed downloading assetbundle from web

I have an Unity game that is build for web player. It has main file (.unity3d) and an asset bundle file (named bundle.unity3d). When I put asset bundle file on my web server, and run the game locally, the asset bundle will fail to load (error message: Failed downloading bundle.unity3d). I have crossdomain.xml on my web site, but it doesn't work. Also if I put my game on another web site it still won't load the asset bundle (so I know that the reason is not my local tests).

Any ideas?

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Graham-Dunnett · May 30, 2013 at 12:37 PM

Grab a copy of curl and try to download the bundle.unity3d file with that. Curl lets you do http downloads from the command line, so is useful for debugging problems like this. If curl can download the asset bundle, and gets a file that is binary identical to the one you have on the server, then the problem you have is related to Unity. If you determine that the problem is Unity-related, then post back some of the code you use to create the asset bundle, the code you use to load it, and maybe a link to the server where the file is hosted. If the asset bundle and webplayer .unity3d files are on the same server then you shouldn't need a crossdomain.xml.

Comment
Add comment · Show 1 · 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 vajagicb · May 30, 2013 at 01:12 PM 0
Share

Hi, Yes I can get the file from the url (using curl or any other tool) and they are identical. The code I use to download the bundle file is copy pasted from Unity docs (http://docs.unity3d.com/Documentation/$$anonymous$$anual/DownloadingAssetBundles.html)

And no, main file and the bundle are not on the same domain, that is the requirement at the moment (don't ask :D).

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

14 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

Related Questions

How to import the object from server to unity 2 Answers

Application.LoadedLevelName for level loaded from asset bundle isn't set 1 Answer

Asset bundles using double memory! 1 Answer

Export assetbundle with lightmap 0 Answers

can't buy asset bundle "Essentials for Professionals" 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