Thanks for the reply
Speed parameter’s default value is zero.
So i think when i create this material with
UMaterialInstanceDynamic::Create(PlasterStaticMeshComponent->GetMaterial(0), GetOwner());
It would set all of the paramters to the default values.
PlasterBurnDynamicMaterial->SetScalarParameterValue(TEXT("Speed"), 0);
PlasterStaticMeshComponent->SetMaterial(0, PlasterBurnDynamicMaterial);
PlasterBurnDynamicMaterial->SetScalarParameterValue(TEXT("Speed"), BurnSpeed);
PlasterBurnDynamicMaterial->SetScalarParameterValue(TEXT("Temperature"), BurnTemperature);
And this kinda code doesn’t seem to affect at all…
I think i should not use ‘Time’ Graph. Time keeps going no matter what i set the ‘Speed’.
If i set ‘Speed’ to 1 at specific timing, it doesn’t start from 0.
Just start from in the middle of ‘Time’ going.