Hi, I’m trying to get the curve data from animations from within a C++ class.
I found this
UAnimInstance * Animation = (Mesh->GetAnimInstance());
Animation->GetCurveValue(FName("Test"));
But when entering that in BeginPlay, I get errors that Animation is incomplete. I’m guessing it can’t find the UAnimInstance class, but I can’t figure out how to solve that.
I tried adding #include “AnimInstance.h”, but it says it can’t find the file.
Any ideas?
Thanks!