Navigation
API > API/Plugins > API/Plugins/CommonUI > API/Plugins/CommonUI/UCommonLazyImage
- UImage::SetBrushFromTexture()
- UCommonLazyImage::SetBrushFromTexture()
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonLazyImage.h |
| Include | #include "CommonLazyImage.h" |
| Source | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Private/CommonLazyImage.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. |