Hello I am using Unity 2019.1.5f1 (64-bit version) I'm having difficulty loading the bundle I use to create Code (CSharp): using UnityEngine; using UnityEditor; public class CreateAssetBundles : MonoBehaviour { [MenuItem("Assets/Create Asset Bundle")] static void BuildAllAssetBundles() { BuildPipeline.BuildAssetBundles("Assets/Editor/Build", BuildAssetBundleOptions.ChunkBasedCompression, BuildTarget.WebGL); } } For loading Code (CSharp): using UnityEngine; using UnityEngine.Networking; using System.Collections; public class BundleLoaderOne : MonoBehaviour { void Start() { StartCoroutine(LoadBundle()); } IEnumerator LoadBundle() { using (UnityWebRequest uwr = UnityWebRequestAssetBundle.GetAssetBundle("http://server.ru/games/assets/bundles/parapet_cube")) { yield return uwr.SendWebRequest(); if (uwr.isNetworkError || uwr.isHttpError) { Debug.Log(uwr.error); } else { AssetBundle bundle = DownloadHandlerAssetBundle.GetContent(uwr); GameObject myPrefab = bundle.LoadAsset<GameObject>("parapet_cube"); Instantiate(myPrefab); } } } } when I test the code in the editor, I have no errors and the build loads fine when I upload everything to the server 3dlove.ru/games/assets/bundles/parapet_cube, everything stops working for me who can tell what i'm doing wrong thank
When I go that URL in my browser, I get 404 error. If it's that what you get, then it works as expected, hosting issue.
I checked the file is available http://server.ru/games/assets/bundles/parapet_cube the problem is not hosting Earlier, when I used www classes, everything worked well with the transition to UnityWebRequest, this problem appeared WWW www = new WWW("http://server.ru/games/assets/bundles/parapet_cube");
An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
in all this time I have tried a large number of options, my guess is that this does not work. My system: Windows 7 64bit, Unity 2019.1.5f1 (64-bit) How can I tell the developers about this problem if there is silence on the forum for answers?
In Unity 2019.1.5f1 (64-bit) there are no errors, but UnityWebRequest does not work as it should. I installed Unity 2018.2.21f1 (64-bit) and everything is fine, no errors My decision to collect the project on Unity 2018.2.21f1 (64-bit)
Sounds like an issue with asset bundle itself. That is, the download succeeds, but loading the bundle does not.