Set Anim instance(object, not class)?

How Set Anim instance object to skeletal mesh?

SetAnimInstance expects a class that inherits from UAnimInstance (either a single animation, an animation blueprint, or a vehicle animation), so you can’t just blindly set it to something like a Skeletal Mesh.

What are you trying to do?

I tried set some variable to my animaton on character. But if i have another skeletal mesh(cloth) then need 2 pass variable. And it skeletal meshes have unsynhronaized animations.