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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Webgl AssetBundle problem

Discussion in 'WebGL' started by DudeGuy, May 7, 2015.

  1. DudeGuy

    DudeGuy

    Joined:
    Jul 17, 2014
    Posts:
    19
    Hello,

    I'll start off by saying I created a bug report for this, but am wondering if I'm just doing something wrong possibly. Link to the bug report: http://fogbugz.unity3d.com/default.asp?695346_p3qe18mfg98odaiu

    Essentially, the animation in the test demo works fine in the Main scene with no asset bundles. But when I build Main into an asset bundle and load it that way, it has a problem with the AnimationClip objects.

    I'm hit with the error: Could not produce class with ID 74. My actual project has a lot of situations where this occurs. Based off of this information: http://docs.unity3d.com/Manual/ClassIDReference.html, 74 is the AnimationClip. I do see the .anim being added to the AssetBundle in the logs. Here is the output:

    Used Assets, sorted by uncompressed size:
    901.4 kb 93.9% Assets/Art/Coin_LD.png
    14.8 kb 1.5% Assets/Art/LD_Coin.fbx
    4.0 kb 0.4% Assets/Art/CoinBankFill.anim
    0.9 kb 0.1% Resources/unity_builtin_extra
    0.4 kb 0.0% Assets/Art/Materials/Coin_LD.mat

    You can get the test Unity project here if you're interested: http://tinyurl.com/oxhfu5j

    I already did create a bug report, but if anyone knows what may be going on before the bug can be looked at, any info would be greatly appreciated!

    Edit: Unity version 5.1.0b5.
     
  2. nawash

    nawash

    Joined:
    Jan 29, 2010
    Posts:
    166
    DudeGuy likes this.
  3. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Yes, this does indeed look like a stripping issue. See the post linked by nawash on how to fix it.
     
    DudeGuy likes this.
  4. DudeGuy

    DudeGuy

    Joined:
    Jul 17, 2014
    Posts:
    19
    Awesome, removing stripping did fix it! I thought I already tried that yesterday, but apparently I only turned stripping off when building the asset bundles or something. I'm not really sure, but either way, with stripping off, it works.

    Perhaps the link.xml file you mentioned will help me still be able to allow stripping. Thanks guys!