Using AnimBP from Datatable

Hey Everyone,

I have a question about setting the AnimInstaceClass from an animbp. So my problem is that it seems like the engine didn’t load the animation blueprint or doesn’t initialize it. I’m not quite sure.

In my datatable structure the animation blueprint is defined as:


UAnimBlueprint * AnimInstanceWeaponFirstPerson; 

In my weapon actor I set the AnimInstanceClass from the datatable structure and initialize it :



WeaponMesh->SetAnimInstanceClass(ItemInformation.AnimInstanceWeaponThirdPerson->GetAnimBlueprintGeneratedClass());
WeaponMesh->InitializeAnimScriptInstance(true);


The problem is that I can’t play a montage or anything like that.

Playing Montage like so:


WeaponMesh->GetAnimInstance()->Montage_Play(WeaponInformation.WeaponInfo.AnimationInfo.WeaponFirstPersonFire, 1.f);

I also don’t get any debug messages that something fails.

Hope someone can help me out.
Cheers.

Did you find your answer ? I also dont have the Animationblueprint column displaying in my datatable any idea ?

UPROPERTY(EditAnywhere, BlueprintReadWrite)
UAnimBlueprint* AnimBlueprint;