Loading Animations from Asset Bundle

I have a bunch of mobs for my game saved in an asset bundle. Some have legacy animations and others use mechanim. My problem is that some of my mechanim assets have separate FBX’s containing the animations for the prefab that I instantiate. If I look through the object array of my asset bundle I do see those animator FBXs, but the controller in the being’s FBX refers to animations in those other FBXs. I don’t know how to re-associate them at runtime so the animations will play. The monster loads and enters its idle animation somehow but then I get a bunch of red errors whenever my game tries to change the animation.

The only thing I could find out there was help on loading legacy Animations from asset bundles.

Thanks in advance!

what you need is an animator controller: Unity - Manual: Animator Controller

Just add the animations to the controller before starting

if your enemies are prefabs that has animator controller then probably unity could not generate the animator class in runtime because of the stripping engine code Checkbox you can find it in player settings> other setting ,
uncheck that box and all your animations will work fine