UMaterialInstanceDynamic::K2_InterpolateMaterialInstanceParams

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).

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInstanceDynamic.h

Include

#include "Materials/MaterialInstanceDynamic.h"

Source

/Engine/Source/Runtime/Engine/Private/Materials/MaterialInstanceDynamic.cpp

Syntax

void K2_InterpolateMaterialInstanceParams
(
    UMaterialInstance * SourceA,
    UMaterialInstance * SourceB,
    float Alpha
)

Remarks

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

Parameters

Parameter

Description

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