Navigation
Unreal Engine C++ API Reference > Runtime > UMG > Components > UImage
- UImage::SetBrushFromTexture()
- UCommonLazyImage::SetBrushFromTexture()
References
Module | UMG |
Header | /Engine/Source/Runtime/UMG/Public/Components/Image.h |
Include | #include "Components/Image.h" |
Source | /Engine/Source/Runtime/UMG/Private/Components/Image.cpp |
virtual void SetBrushFromTexture
&40;
UTexture2D &42; Texture,
bool bMatchSize
&41;
Remarks
Sets the Brush to the specified Texture.
Parameters
Name | Description |
---|---|
Texture | Texture to use to set on Brush. |
bMatchSize | If true, image will change its size to texture size. If false, texture will be stretched to image size. |