How can I call a function using Animnotify?

I add a custom animation notification to one of my pawn’s animation sequences. My notify name is : “MyNotify”.
Now, I would like to call a function in my pawn class (cpp) , when this event fires.

(I have a “Animinstance” class in my codes , too.)

Thanks for helping.

All you need to do is add a

 void AnimNotify_MyNotify();

function to your AnimInstance, and Unreal will automatically call it when the notify fires. Basically, just name the function AnimNotify_YOURNOTIFYNAME and make it visible to Unreal with UFUNCTION().

Thank you I’ve been searching for this for an hour, I knew there had to be a simple way to do that.