UKismetMaterialLibrary::CreateDynamicMaterialInstance

Creates a Dynamic Material Instance which you can modify during gameplay.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Kismet/KismetMaterialLibrary.h

Include

#include "Kismet/KismetMaterialLibrary.h"

Source

/Engine/Source/Runtime/Engine/Private/KismetMaterialLibrary.cpp

Syntax

static UMaterialInstanceDynamic * CreateDynamicMaterialInstance
(
    UObject * WorldContextObject,
    class UMaterialInterface * Parent,
    FName OptionalName,
    EMIDCreationFlags CreationFlags
)

Remarks

Creates a Dynamic Material Instance which you can modify during gameplay.