Knowledge base
Search Blueprint patterns
Searching…
Knowledge base
Pattern: EventBeginPlay → GetMesh → CreateDynamicMaterialInstance(ElementIndex=0) → SetVariable(DynMat=ReturnValue). Then on Tick or timer: SetScalarParameterValue(ParameterName='Opacity', Value=SinWave). Or for color: SetVectorParameterValue(ParameterName='Color', Value=MakeLinearColor). Key: CreateDynamicMaterialInstance is called on the COMPONENT (GetMesh), not the actor. Must store the result before using Set*ParameterValue. ParameterName MUST match the name in the Material asset exactly.