Navigation
API > API/Runtime > API/Runtime/UMG > API/Runtime/UMG/Blueprint > API/Runtime/UMG/Blueprint/UWidgetBlueprintLibrary
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 |
static FSlateBrush MakeBrushFromTexture
&40;
UTexture2D &42; Texture,
int32 Width,
int32 Height
&41;
Remarks
Creates a Slate Brush from a Texture2D A new slate brush using the texture.
Parameters
| Name | 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 |