How to get reference to anim class?

In the game I’m working, there are many different characters. Only one at a time is shown walking around the world, but the player has the option to switch the character. Also, in combat, many characters (the party) are spawned. So I want a way to dynamically spawn a pawn and switch its skeletal mesh / anim class / materials, in order to re-create any character at runtime.

Each character is already set up as a UObject derived class (in c++), which holds all the information such as name, stats, etc. I think the best way to do that is also adding this information to the object. I use blueprint at the start of the game to get a reference to the mesh / materials / anim class, and pass it to the c++ class.

I can grab the skeletal mesh and the material array just fine, I just don’t know how to get a hold of the anim class.