UWidgetBlueprintLibrary::SetBrushResourceToTexture

Sets the resource on a brush to be a [UTexture2D](API\Runtime\Engine\Engine\UTexture2D).

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 void SetBrushResourceToTexture
(
    FSlateBrush & Brush,
    UTexture2D * Texture
)

Remarks

Sets the resource on a brush to be a UTexture2D.