trying to cast animBP but it is not working. “Cast Failed”
(1) my variable from animBP
I have the exact same problem
according to Get Anim Instance | Unreal Engine Documentation
GetAnimInstance() returns “Anim Instance Reference”.
the cast could logically fail when there is no direct connection between the classes, so
ensure your blueprint class SGTAnimBP inherits “Anim Instance”.
otherwise the reason could be a null reference, in a case your mesh doesn’t have any anim instance assigned at all.