Hi everybody,
I’m stuck with this, I can’t seem to find a way to initialize the Blendables array property in a PostProcessComponent.
I already asked this on answer interface but I got no answers, so I’m posting this here in hope that someone can help me.
I’m trying to assign a post process by default to a UPostProccessComponent but I can’t understand why I can’t add something to the blendables array.
Here is my code inside the constructor of my custom actor :
PostProcessComponent = PCIP.CreateDefaultSubobject<UPostProcessComponent>(this, TEXT("PostProcess"));
FPostProcessVolumeProperties prop = PostProcessComponent->GetProperties();
ConstructorHelpers::FObjectFinder<FMaterial> DefaultMaterial(TEXT("/Game/Materials/MonsterPostProcess"));
if (DefaultMaterial.Succeeded())
prop.Settings->Blendables.Add((UObject*)(DefaultMaterial.Object));
Am I using the correct function ? But even if I create a local UObject and add it to Blendables, it gives me a wrong parameter error.
Thanks.