I want to add a post process component to pointlight.h, how do I do this?

I want to add a post process component that has all the settings the post process volume class has to the point light class, or more specifically pointlight.h.

I’m afraid you will have to recompile the engine from source of you want to add a component to the engine APointLight class.

However that is not the way I would approach this. There’s a cleaner way to do what you want and doesn’t involve recompiling the engine from source.

Just create your own APointLight class inheriting from APointLight.
Then create a uproperty pointer in the header to hold your post process component.

class AMyPointLight : public APointLight
{
    AMyPointLight();

    UPROPERTY (Edit anywhere, BlueprintReadOnly)
    UBoxComponent* PostProcessBox;

    UPROPERTY (Edit anywhere, BlueprintReadOnly)
    UPostProcessComponent* PostProcess;
}

Then in your constructor create the components

AMyPointLight:: AMyPointLight ()
{
    PostProcessBox = CreateDefaultSubobject<UBoxComponent>("PostProcessBox");
    PostProcessBox->SetupAttachment(RootComponent);

    PostProcess = CreateDefaultSubobject<UPostProcessComponent>("PostProcess");
    PostProcess->SetupAttachment(PostProcessBox);
}

Then in your scene use your own pointlight instead of the engine one.

How in the world do I inherit?