Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
22 results for Material
A lightweight override of a Material's parameters (color, scalar). Far cheaper than creating new Materials.
UMaterialInstanceDynamic method. Parameter name must match material graph.
Set Scalar Parameter ValueUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: BeginPlay → CreateDynamicMaterialInstance(MeshComponent, 0) → store as variable DynMat. On trigger → SetVectorParameterValue(DynMat, 'BaseColor', LinearColor). Create MID once in BeginPlay, reuse variable. Parameter name must match Material parameter exactly (case-sensitive).
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.
ParameterName must match the parameter name in the Material exactly (case-sensitive).
SetScalarParameterValueUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoUPrimitiveComponent method. Store result in variable and reuse. Create once in BeginPlay.
Create Dynamic Material InstanceUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoUMaterialInstanceDynamic method. Used for color changes (BaseColor, EmissiveColor).
Set Vector Parameter ValueUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoSet MaterialUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoMust call this before SetScalarParameterValue/SetVectorParameterValue. Store the result in a variable for reuse.
CreateDynamicMaterialInstanceUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoDefines how a surface renders — colors, textures, roughness, normals. Compiled to shader code per platform.