I have a function I want to implement in C++ base class:
BaseClass .h:
UFUNCTION(BlueprintCallable, BlueprintNativeEvent)
void MyFunction(); virtual void MyFunction_Implementation();
BaseClass .cpp:
void BaseClass::MyFunction_Implementation()
{
}
I want to override this in children base classes in C++:
ChildClass.h:
UFUNCTION(BlueprintCallable, BlueprintNativeEvent)
void MyFunction() override; virtual void MyFunction_Implementation() override;
ChildClass.cpp:
void ChildClass::MyFunction_Implementation()
{
}
but this doesn’t compile.
Is is possible to do this?
It works fine if the parent doesn’t add the implementation and the child does, but it seems the parent and child can’t each have their own