Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInstanceDynamic
Description
Interpolates the scalar and vector parameters of this material instance based on two other material instances, and an alpha blending factor The output is the object itself (this). Supports the case SourceA==this || SourceB==this Both material have to be from the same base material
| Name | K2_InterpolateMaterialInstanceParams |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInstanceDynamic.h |
| Include Path | #include "Materials/MaterialInstanceDynamic.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInstanceDynamic.cpp |
UFUNCTION (BlueprintCallable,
Meta=(DisplayName="Interpolate Material Instance Parameters", ScriptName="InterpolateMaterialInstanceParameters"),
Category="Rendering|Material")
void K2_InterpolateMaterialInstanceParams
(
UMaterialInstance * SourceA,
UMaterialInstance * SourceB,
float Alpha
)
Parameters
| Name | Remarks |
|---|---|
| SourceA | value that is used for Alpha=0, silently ignores the case if 0 |
| SourceB | value that is used for Alpha=1, silently ignores the case if 0 |
| Alpha | usually in the range 0..1, values outside the range extrapolate |