Hello Everyone,
I hope everyone is fine during this carzy time. I have create a topic because I have recently done this video and I have a weird problem. The part when we add the material at the the array under the post process is fine.
However, the second part when we create we BlinkerMaterialBase , not working as expected.
In the begin play,
Super::BeginPlay();
if (BlinkerMaterialBase != nullptr)
{
BlinkerMaterialInstance = UMaterialInstanceDynamic::Create(BlinkerMaterialBase, this);
PostProcessComponent->AddOrUpdateBlendable(BlinkerMaterialInstance);
BlinkerMaterialInstance->SetScalarParameterValue(TEXT("Radius"), 0.2);
}
else
{
UE_LOG(LogTemp, Warning, TEXT("No BlinkerBase "));
}
Unfortunately, I have never a BlinkerMaterialBase .
These are my declaration
UPROPERTY()
class UPostProcessComponent* PostProcessComponent;
UPROPERTY(EditAnywhere)
class UMaterialInterface* BlinkerMaterialBase;
UPROPERTY()
class UMaterialInstanceDynamic* BlinkerMaterialInstance;
I have check , in VRCharacter, I have already selected M_BlinkerMaterial (post process in material domain ) and it is in place.
So, I wonder if it is me, or the engine who is tricky ?
I have installed unreal 5.23.
Regards
Damien