UWidgetBlueprintLibrary::MakeBrushFromTexture

Creates a Slate Brush from a Texture2D

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 MakeBrushFromTexture
(
    UTexture2D * Texture,
    int32 Width,
    int32 Height
)

Remarks

Creates a Slate Brush from a Texture2D

Returns

A new slate brush using the texture.

Parameters

Parameter

Description

Width

When less than or equal to zero, the Width of the brush will default to the Width of the Texture

Height

When less than or equal to zero, the Height of the brush will default to the Height of the Texture

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