Cant Received_Notify override

.h

#include "Animation/AnimNotifies/AnimNotify.h"
#include "NP4HeroAttackComboNotify.generated.h"

/**
 * 
 */
UCLASS()
class NP4_API UNP4HeroAttackComboNotify : public UAnimNotify
{
	GENERATED_BODY()

public:
	UNP4HeroAttackComboNotify();
	
	virtual bool Received_Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation) const override;
		
	
};



.Cpp

// Fill out your copyright notice in the Description page of Project Settings.

#include "NP4.h"
#include "NP4HeroAttackComboNotify.h"

UNP4HeroAttackComboNotify::UNP4HeroAttackComboNotify()
{

}

bool UNP4HeroAttackComboNotify::Received_Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation) const
{

	return true;
}

the error massge is

override member function cant define base class member

why

This problem still persists six years later in 5.0.

To solve the problem I just override the Notify function instead, despite the Documentation stating it is deprecated. Deprecated and working is better than a broken replacement.

virtual void Notify(USkeletalMeshComponent* MeshComp, UAnimSequenceBase* Animation, const FAnimNotifyEventReference& EventReference) override;
1 Like