Module |
|
Header |
/Engine/Source/Runtime/UMG/Public/Blueprint/WidgetBlueprintLibrary.h |
Include |
#include "Blueprint/WidgetBlueprintLibrary.h" |
Source |
/Engine/Source/Runtime/UMG/Private/WidgetBlueprintLibrary.cpp |
static FSlateBrush MakeBrushFromTexture
(
UTexture2D * Texture,
int32 Width,
int32 Height
)
Creates a Slate Brush from a Texture2D
A new slate brush using the texture.
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 |