I am trying this to play an animation on my character, but the compiler tells me AnimInst is of an undefined type, Why?
UAnimInstance* AnimInst = GetMesh()->GetAnimInstance();
if I leave the first line in there it compiles just fine, adding the second line gives me the error. Any ideas? including AnimInstance.h on top of my character cpp doesnt work either.