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 /
This question was closed Dec 17, 2014 at 10:33 AM by Prasanna for the following reason:

Found own way.

avatar image
0
Question by Prasanna · Jun 19, 2014 at 11:24 AM · assetbundleloadlevelurlloadfromcacheordownload

Asset Bundle Download Problem

Hello there, i have assetbundle for my project. Here my assetbundle is created fine, i can download that bundle from url at the same time i can download that link directly through browser and from my mobile too. am using android platform.

This is for creating AssetBundle, this works perfectly...

 using UnityEngine;
 using UnityEditor;
 public class ExportAssetBundles 
 {
     [MenuItem("Assets/Build AssetBundle")]
     static void ExportResource () 
     {
         BuildPipeline.PushAssetDependencies();
         string[] levels = {"E:/Unity Works/Projects/Unity Camera/Assets/Assets/Scenes/Camera.unity"};
         
         string path= "E:/Unity Works/Assets_Bundle/Game_Play.unity3d";
         BuildPipeline.PushAssetDependencies();
         BuildPipeline.BuildStreamedSceneAssetBundle(levels,path, BuildTarget.Android);
         BuildPipeline.PopAssetDependencies();
     }
 }

This is for download assetbundle from URl, the link is working perfect it's downloaded the file from server, i can see it in my folder. But it's not proceed the level to load...

 using UnityEngine;
 using System.Collections;
 public class BundleLoad : MonoBehaviour
 {
     private string progress = " "; 
     private string logtxt;
     public string url = "";
     
     void log( string t )
     {
         logtxt += t + "\n"; 
     }
     void OnGUI()
     {
         Vector3 scale;
         
         float ResolutionX   = 1024;
         float ResolutionY   = 768;
         
         scale.x             = (float)Screen.width/ResolutionX;
         scale.y             = (float)Screen.height/ResolutionY;
         scale.z             = 1;
         
         Matrix4x4 svMat     = GUI.matrix;
         GUI.matrix          = Matrix4x4.TRS(new Vector3(0,0,0),Quaternion.identity,scale);
 
         GUI.Label(new Rect(10, 10, Screen.width-10, Screen.height-10), logtxt + " " + progress);
     }
     
     IEnumerator Start()
     {
         using(WWW www = WWW.LoadFromCacheOrDownload (url, 1))
         { 
             while( !www.isDone )    
             {
                 progress = Time.time + "-" + www.progress/100.0f;
                 yield return null; 
             }
             yield return www;
             AssetBundle bundle = www.assetBundle;
             bundle.LoadAll();
             Application.LoadLevel("Game_Play");
         }
     }
 }


How can i finish this.

Comment
Add comment · Show 2
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 PAEvenson · Jun 19, 2014 at 11:49 AM 1
Share

what is the error you are getting? If your problem is they arent updating it is because you need to clean the cache folder.

avatar image Prasanna · Jun 19, 2014 at 11:55 AM 0
Share

I didn't get any error, but i can't download from the server. Once i game clicked link its says failed download, i cleared all cache file in the browser.

0 Replies

  • Sort: 

Follow this Question

Answers Answers and Comments

22 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

Related Questions

How get all scene and asset name from given bundle for Unity AssetBundleManager? 0 Answers

Asset bundle not load the object, but it download 0 Answers

asset bundle create and download from server(IOS) 1 Answer

Can't load asset bundles offline even if they are cached. 0 Answers

Cloud recognition in Vuforia 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