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.
20 results for Material Instance
A lightweight override of a Material's parameters (color, scalar). Far cheaper than creating new Materials.
Pattern: 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).
UPrimitiveComponent 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 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 agoSet MaterialUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: 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.
USkeletalMeshComponent method. Cast to your AnimBP class.
Get Anim InstanceUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoA live, runtime object of a class. Properties on an instance can differ from defaults set in the class.
Pure node. Cast result to your ABP_Character class to access anim variables.
GetAnimInstanceUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoFor non-Actor objects (UObjects). Actors must use SpawnActorFromClass instead. Outer is usually 'self' or GetTransientPackage().
NewObjectUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago