Hi, i have an issue with my cloth, that attached to character mesh as separate Skeletal meshes: when i try to use anim montages instead of animation sequence in Animation Blueprint. My clothes just remain stiff and go back to idle pose when anim montage is playing. Clothes has the same skeletal and i use the same Anim Blueprint class for these. How can i fix it? I try to change Animation Mode in C++ from AnimationBlueprint to AnimationSingleNode for my cloth, like this, but it is not working correctly:
void TestClass::SetEquipmentAnimationAsset(const bool AnimMontage)
{
check(ActionMontageAsset);
if (AnimMontage)
{
AnimInstance = Cloth->GetAnimInstance();
Cloth->SetAnimationMode(EAnimationMode::AnimationSingleNode);
Cloth->SetAnimation(ActionMontageAsset);
}
else
{
Cloth->SetAnimationMode(EAnimationMode::AnimationBlueprint);
Cloth->SetAnimInstanceClass(AnimInstance.GetClass());
}
}
How to fix this problem? I found only one topic about this, but there were not any answer( Thanks, for any help