C++ call parent-constructor manually?

Hi,

It is impossible to do what you are trying to do. The only way to do it is with multiple bases, but UE4 requires that the UObject base is listed first:

// illegal - UnrealHeaderTool will reject this
UCLASS()
class ABaseEnemy
    : public ClassWhoseConstructorMustExecuteBeforeAActorsConstructor
    , public AActor
{
};

Steve

1 Like