Get Blueprint Animation variables in C++?
Hello, I've been able to get Curves and Notify's from animations just fine, but I'm having a hard time getting or setting animation variables so the animations will actually play.
Here is how I got the curves and notifys:
Now I can't seem to figure out how to access the variables through the AnimInstance.
Any help would be greatly appreciated! Thanks!
Bonus: If you know how to directly play/crossfade an animation through code that would be great too! :)
I have two options for you. First is the way I suggested already. It's the answer usually given:
I put a way to get and to set in there.
This technique also works with regular blueprints, not just anim blueprints and with other types:
The names are just simple FName data types:
Here's the source I got it from:
answered Sep 15 '15 at 03:17 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here