- Home /
AnimationClips from fbx in Assetbundle not correctly loaded
Hi there,
i'm trying to load animation clips from an imported fbx file which i get via assetBundle.
basically this code:
AnimationClip[] clips = b.LoadAllAssets<AnimationClip>();
foreach (AnimationClip clip in clips)
{
clip.legacy = true;
clip.wrapMode = WrapMode.Loop;
anim.AddClip(clip, clip.name);
}
and then calling it with:
anim.Play("nameHere);
will do nothing
if i put the fbx in my resources folder and load the clips with this instead:
AnimationClip[] clips = Resources.LoadAll<AnimationClip>(s);
everything works fine
clips from both sources return false for clip.empty and the length from both sources is the same.
i haven't seen a property to directly see the curves so i didn't compare those
as for building the asset bundles im using BuildAssetbundleOptions.None as the only 2 that seem relevant are .CompleteAssets and .CollectDependencies which are both deprecated as they are now standard
As far as i can see the only 2 sources for problems could be building the bundle and loading from the bundle
Any help appreciated!
Your answer
Follow this Question
Related Questions
Creating Asset-Bundle from FBX sub tree 0 Answers
Size of FBX in AssetBundle is larger 0 Answers
AnimationClip in AssetBundle can't load correctly 0 Answers
why fbx's animation is null? 0 Answers
Android Download asset bundle locally 0 Answers