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 Raynoko · Jul 22, 2014 at 11:15 AM · gameobjectinstantiateassetbundlewwwdownload

Download assetBundle from server

Hi every one, im trying to donwload asset bundle and then instantiate any gameobject from that. But i dont understand what im doing wrong. i was watching some tutorials, but still doeanst work. Canu help me pls? When im strarting Scene console write me this error :

NullReferenceException: Object reference not set to an instance of an object loadAsset+c__Iterator0.MoveNext () (at Assets/Scripts/loadAsset.cs:16)

and here is my script :

 using UnityEngine;
 using System.Collections;
 
 public class loadAsset : MonoBehaviour {
 
     private string url = "https://www.dropbox.com/s/juk97y0ovyruhpc/skuska.unity3d";
         
 
     IEnumerator Start () {
         WWW www = WWW.LoadFromCacheOrDownload (url,1);
 
         yield return www;
 
         AssetBundle bundle = www.assetBundle;
 
         GameObject kocka = bundle.Load("Cube", typeof(GameObject)) as GameObject;
 
         Instantiate(kocka);
 
         kocka.transform.Translate (new Vector3(1,1,1));
     }
 
 }

i was trying to use other server but still doeasnt work. Can u help with my problem? oh sure script its name is "ExportAssetBundles" i have in Editor Folder in my project.

Thanks Thomas

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 ajketan · Jul 22, 2014 at 01:05 PM 0
Share

Hey,

The only problem I see here is that when I paste the url provided by you in a browser it takes me to a download page and not the actual downloadable asset.

In this case... try this LIN$$anonymous$$ ....

This is the actual downloadable asset that you have uploaded.

Use this as your url string : "https://www.dropbox.com/s/juk97y0ovyruhpc/skuska.unity3d?dl=1"

Hope this works for you.

Cheers.

avatar image Raynoko · Jul 23, 2014 at 07:17 AM 0
Share

Thnak you very much

avatar image Kimi073 · May 17, 2016 at 05:03 AM 0
Share

Is this problem solved? I'm in the same error right now and still haven't found any solutions.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Paulius-Liekis · Jul 23, 2014 at 04:05 PM

The link is broken: https://www.dropbox.com/s/juk97y0ovyruhpc/skuska.unity3d

When working with WWW always check that WWW.error is null after "yield return www;".

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 Raynoko · Jul 25, 2014 at 05:59 PM 0
Share

$$anonymous$$y url was workingm, but later i deleted this unity3d file... but proble is with this error : NullReferenceException: Object reference not set to an instance of an object loadAsset+c__Iterator0.$$anonymous$$oveNext () (at Assets/Scripts/loadAsset.cs:16)

i dont really dont know what it needs... i was trying everything, but still doesnt works... any idea how fix it? Thanks

avatar image
0

Answer by ksiUnity · May 28, 2015 at 07:06 AM

U can try uploading your unity3d files to either google sites or maybe use WinSCP as a server.

Comment
Add comment · 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

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

6 People are following this question.

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

Related Questions

Reading XML file 0 Answers

What's the matter downloading with 3G 0 Answers

Cannot load cached AssetBundle 1 Answer

Destroying Instantiated Prefab from AssetBundle 1 Answer

Assetbundle materials? 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