I’m also having a problem with an override function. Haven’t found a good solution.
Parent Class Declaration:
UFUNCTION(Client, Reliable)
virtual void Client_LoadInventoryFromSave(const TArray& Items, int32 version, int32 level=1);
Child Class Declaration:
//UFUNCTION(Client, Reliable)
virtual void Client_LoadInventoryFromSave(const TArray& Items, int32 version, int32 level = 1) override;
If you don’t comment out the UFUNCTION you receive the error:
Override of UFUNCTION in parent class (InventoryComponentBase) cannot have a UFUNCTION() declaration above it; it will use the same parameters as the original declaration.
However if you comment it out you receive the error:
Error C2509: ‘Client_LoadInventoryFromSave_Implementation’: member function not declared
This is using the following function on the child class:
void UInfusionComponent::Client_LoadInventoryFromSave_Implementation(const TArray& Items, int32 version, int32 level)
{
.
.
}