UWidgetBlueprintLibrary::MakeBrushFromMaterial

Creates a Slate Brush from a Material.

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 FSlateBrush MakeBrushFromMaterial
(
    UMaterialInterface * Material,
    int32 Width,
    int32 Height
)

Remarks

Creates a Slate Brush from a Material. Materials don't have an implicit size, so providing a widget and height is required to hint slate with how large the image wants to be by default.

Returns

A new slate brush using the material.

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