UMaterialInstanceDynamic::K2_CopyMaterialInstanceParameters

Copies over parameters given a material interface (copy each instance following the hierarchy) Very slow implementation, avoid using at runtime.

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_CopyMaterialInstanceParameters
(
    UMaterialInterface * Source,
    bool bQuickParametersOnly
)

Remarks

Copies over parameters given a material interface (copy each instance following the hierarchy) Very slow implementation, avoid using at runtime. Hopefully we can replace it later with something like CopyInterpParameters() The output is the object itself (this). Copying 'quick parameters only' will result in a much faster copy process but will only copy dynamic scalar, vector and texture parameters on clients.

Parameters

Parameter

Description

bQuickParametersOnly

Copy scalar, vector and texture parameters only. Much faster but may not include required data

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss