Navigation
API > API/Plugins > API/Plugins/CommonUI
Inheritance Hierarchy
- UImage
- UCommonLazyImage
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonLazyImage.h |
| Include | #include "CommonLazyImage.h" |
Syntax
UCLASS ()
class UCommonLazyImage : public UImage
Remarks
A special Image widget that can show unloaded images and takes care of the loading for you!
UCommonLazyImage is another wrapper for SLoadGuard, but it only handles image loading and a throbber during loading.
If this class changes to show any text, by default it will have CoreStyle styling
Constructors
| Type | Name | Description | |
|---|---|---|---|
UCommonLazyImage
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | |||
| bool | CanEditChange
(
const FProperty* InProperty |
||
| const FText | |||
| bool | IsLoading () |
||
| void | OnImageStreamingComplete
(
TSoftObjectPtr< UObject > LoadedSoftObject |
||
| void | OnImageStreamingStarted
(
TSoftObjectPtr< UObject > SoftObject |
||
| FOnLoadGuardStateChangedEvent & | |||
| void | |||
| TSharedRef< SWidget > | |||
| TSharedRef< SWidget > | |||
| void | ReleaseSlateResources
(
bool bReleaseChildren |
||
| void | SetBrush
(
const FSlateBrush& InBrush |
||
| void | SetBrushFromAsset
(
USlateBrushAsset* Asset |
||
| void | SetBrushFromLazyDisplayAsset
(
const TSoftObjectPtr< UObject >& LazyObject, |
Set the brush from a string asset ref only - expects the referenced asset to be a texture or material. | |
| void | SetBrushFromLazyMaterial
(
const TSoftObjectPtr< UMaterialInterface >& LazyMaterial |
Set the brush from a lazy material asset pointer - will load the material as needed. | |
| void | SetBrushFromLazyTexture
(
const TSoftObjectPtr< UTexture2D >& LazyTexture, |
Set the brush from a lazy texture asset pointer - will load the texture as needed. | |
| void | SetBrushFromMaterial
(
UMaterialInterface* Material |
||
| void | SetBrushFromTexture
(
UTexture2D* Texture, |
||
| void | SetBrushFromTextureDynamic
(
UTexture2DDynamic* Texture, |
||
| void | SetIsLoading
(
bool bIsLoading |
||
| void | SetMaterialTextureParamName
(
FName TextureParamName |
Establishes the name of the texture parameter on the currently applied brush material to which textures should be applied. | |
| void |