That’s because the AnimInstance is not exactly the blueprint.
What exactly do you want to do? Get access to the Instance to call a Montage or do you want the AnimBlueprint in your C++ Class to set it like you would do inside the BP?
That’s because the AnimInstance is not exactly the blueprint.
What exactly do you want to do? Get access to the Instance to call a Montage or do you want the AnimBlueprint in your C++ Class to set it like you would do inside the BP?
Hello.
I’m trying to get my AnimBlueprint in c++, but with no luck unfortunately. I tried this:
Cast<MyAnimBlueprint>(GetMesh()->GetAnimInstance());
But it doesn’t work obviously, and I just don’t know what to cast as.
Any ideas?
I’d like to set two variables of my AnimBlueprint in my PlayerCharacter code.
#Two Wikis For You!
I have two wikis on this subject!
custom C++ Logic for anim bp
custom C++ vars for anim bp
Thank you, Rama! This solves my problem.