Download

Setting animation BP on a skeletal mesh component from a soft anim BP reference?

I’m using soft references for a template thing, it works fine with skeletal meshes and materials (just casting to skeletal mesh or material instance) but for setting the anim instance on a skeletal mesh component it doesn’t really work.

The problem is that you need an anim instance class but you can’t really turn the soft reference (object) into the class it’s supposed to be. If you drag off the Load Asset node you end up with a Get Class node between that node and the Set Anim Instance class node which isn’t the anim BP class but instead the AnimBlueprint base class which isn’t very helpful. I couldn’t get it to work with casting either.

Is there a way to make this work?