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

Asset bundles form 4.0 in 4.3

Discussion in 'Scripting' started by davidhorak, Apr 16, 2014.

  1. davidhorak

    davidhorak

    Joined:
    Nov 7, 2012
    Posts:
    16
    Hello we have many created asset bundles in Unity 4.0. (For each platform separated file)
    Now after upgrade we getting crash and error when we trying download bundles:

    (Andorid):

    E/Unity(27169): [Position out of bounds! 6072 > 6068]
    E/Unity(27169): The asset bundle 'BUNDLE' could not be loaded because it contains run-time classes of incompatible version. Rebuild the AssetBundle to fix this error.

    Asset contains data + one script, but the script isn't changed. But on unity 4.0 we have set: Version control: None.
    Now we have on 4.3 Meta files.


    Is there any solution how to fix this compatibility bug or rebuild assets for asset files it self ?
     
  2. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    http://unity3d.com/unity/whats-new/unity-4.2
     
  3. davidhorak

    davidhorak

    Joined:
    Nov 7, 2012
    Posts:
    16
    Thank you.
    I am just tested 4.1 and same problem. So I am in big trouble.
    It is possible to load old bundles and rebuild them?
    And BTW is there any more elegant solution to avoid same issue in future ? (Cross plafrom)
     
  4. Dantus

    Dantus

    Joined:
    Oct 21, 2009
    Posts:
    5,667
    I don't think it is possible to open and rebuild the bundles. You need to recreate them from your assets.

    In the Unity 5 announcement they mentioned something about asset bundles, but it was not entirely clear what is going to change.
     
  5. davidhorak

    davidhorak

    Joined:
    Nov 7, 2012
    Posts:
    16
    Thank you again.