Webgl AssetBundle problem

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: Unity - Manual: YAML Class ID Reference, 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.

Hi,
May be you’re experiencing the same problem that I did.
Solution to my issue was here :

Let us know if it was the same issue please.

1 Like

Yes, this does indeed look like a stripping issue. See the post linked by nawash on how to fix it.

1 Like

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!