I cam across the [this][1] thread
I subclassed UAnimNotify and overrode Notify.
However, now I don’t understand how to get things from within Notify that I need. For example the current Character.
In the Animation BP I can get the pawn easily from the AnimInstance
However, I don’t see a way to get the AnimInstance within UAnimNotify.
UCLASS()
class FPSGAME_API UFPSTriggerAbilityAnimNotify : public UAnimNotify
{
GENERATED_BODY()
virtual void Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation) override;
};
void UFPSTriggerAbilityAnimNotify::Notify(class USkeletalMeshComponent* MeshComp, class UAnimSequenceBase* Animation)
{
Super::Notify(MeshComp, Animation);
// How do I get character here?
}