Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Object is not loaded from the server

Discussion in 'Scripting' started by schetty, Apr 9, 2014.

  1. schetty

    schetty

    Joined:
    Jul 23, 2012
    Posts:
    424
    Hi,

    I have generated the prefab in unity and i uploaded it to my dropbox. I put the name as Cube.unity3d. And i have added this script in one of my empty game object.

    Code (csharp):
    1. function Start () {
    2.     var www = WWW ("https://www.dropbox.com/s/drvaucv7l61c77g/Cube.unity3d");
    3.     yield www;
    4.     // Get the designated main asset and instantiate it.
    5.     Instantiate(www.assetBundle.mainAsset);
    6. }
    When i play the unity editor the that asset is not coming rather it is showing the error.

    Please help to solve this issue. I am using unity4.3.1.

    Here is that dropbox link:
    https://www.dropbox.com/s/drvaucv7l61c77g/Cube.unity3d

    Thanks.
     
  2. schetty

    schetty

    Joined:
    Jul 23, 2012
    Posts:
    424
    In unity4.3.1 i cannot able see this asset bundle option.
    $Capture.PNG

    what should i do to get this?

    This is the first time i started working on assetbundle.

    please help me to do this.


    Thanks.
     
  3. bigmisterb

    bigmisterb

    Joined:
    Nov 6, 2010
    Posts:
    4,221
    I only assume you know that assetbundles are for Unity Pro, right?
     
  4. schetty

    schetty

    Joined:
    Jul 23, 2012
    Posts:
    424
    Yes i knew, i am using unity pro only.
     
  5. schetty

    schetty

    Joined:
    Jul 23, 2012
    Posts:
    424
    any update?