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 MSDs · Feb 10, 2013 at 11:01 AM · assetbundlewww

404 Not Found, Problem with WWW:get_assetBundle

hi guys, I have mac target game and I build assetbundle and it is available in my website in game_files directory, I have this code for download assetbundle to my scene,

 using UnityEngine;
 using System.Collections;
 
 public class LoadAssets : MonoBehaviour {
     public string URL="http://www.mysite.com/game_files/KSA5.unity3d";
 
     IEnumerator Start () {
         WWW www = WWW.LoadFromCacheOrDownload(URL,1);
         //wait for download to complete
         yield return www;
         AssetBundle bundle=www.assetBundle;
         GameObject obj = bundle.Load("KSA-Rd-Kgfhd-705",typeof(GameObject)) as GameObject;
         
         Instantiate(obj);
         
     }
     
     // Update is called once per frame
     void Update () {
     
     }
 }


I got this error:

 You are trying to load data from a www stream which had the following error when downloading.
 404 Not Found
 UnityEngine.WWW:get_assetBundle()
 <Start>c__Iterator1:MoveNext() (at Assets/Scripts/LoadAssets.cs:11)

However I can read any think from my directory remotely. please some one can give me answer of this problem .. thanks

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

2 Replies

· Add your reply
  • Sort: 
avatar image
-1
Best Answer

Answer by MSDs · Feb 12, 2013 at 01:13 PM

answer is here

http://answers.unity3d.com/answers/397915/view.html

http://answers.unity3d.com/answers/397920/view.html

thanks

Comment
Add comment · Show 2 · 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 AndrewK · Sep 02, 2013 at 09:08 PM 1
Share

This answer was deleted, can you help me with that? Have the same problem

avatar image Ibrhm · Dec 25, 2015 at 01:57 PM 0
Share

This answer deleted!!!!!

avatar image
0

Answer by Bunny83 · Dec 25, 2015 at 05:26 PM

Not sure why his original answer got deleted. He reposted the answer. I've fixed the link in the other answer.

However the linked answer is not a general solution. The error

 404 Not found

Is a server side error that indicates that whatever you want to reach though the given URL can't be found / accessed. Common problems are:

  • wrong URL. Keep in mind that URLs are usually case-sensitive.

  • wrong server settings. The server might not allow a specific file extension to be accessed.

Comment
Add comment · Show 2 · 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 2rusbekov · Dec 26, 2015 at 04:25 AM 0
Share

URLs are usually case-insensitive. I think it is a .htaccess misconfiguration issue

avatar image Bunny83 2rusbekov · Dec 26, 2015 at 09:20 AM 0
Share

Not really. I didn't say they are always case sensitive, just usually. Per definition URLs are actually case sensitive except of a few parts. The scheme and host name is case insensitive but things like username / password usually are not. Everything else depends on the usage and implementation. Since most web servers are Unix / Linux based the underlaying filesystem is usually case sensitive. Therefore path and file names are also case sensitive. For query string and fragment identifier it depends on the usage. For example the media wiki software is case sensitive. That's why those two links are not the same:

http://wiki.unity3d.com/index.php/CoroutineHelper
http://wiki.unity3d.com/index.php/coroutinehelper
http://wiki.unity3d.com/Index.php/CoroutineHelper

By those examples you can see if the page name is't in the right case, the wiki software doesn't find it. Further more the last link has written Index.php ins$$anonymous$$d of index.php and you get a 404. That's most likely because the server is Unix / linux based like most servers on the net.

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

13 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

Related Questions

Save Hash128 from Asset Bundle Manifest 2 Answers

Errors When Loading AssetBundles With Concurrent WWW Calls (Unity5) 0 Answers

no extension method `LoadAssetAsync' of type `UnityEngine.AssetBundle 0 Answers

Yield Problems 2 Answers

Failed to Wait on a Semaphore 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