UWidgetBlueprintLibrary::GetDynamicMaterial

Gets the material that allows changes to parameters at runtime.

Choose your operating system:

Windows

macOS

Linux

References

Module

UMG

Header

/Engine/Source/Runtime/UMG/Public/Blueprint/WidgetBlueprintLibrary.h

Include

#include "Blueprint/WidgetBlueprintLibrary.h"

Source

/Engine/Source/Runtime/UMG/Private/WidgetBlueprintLibrary.cpp

Syntax

static UMaterialInstanceDynamic * GetDynamicMaterial
(
    FSlateBrush & Brush
)

Remarks

Gets the material that allows changes to parameters at runtime. The brush must already have a material assigned to it, if it does it will automatically be converted to a MID.

Returns

A material that supports dynamic input from the game.