Navigation
Unreal Engine C++ API Reference > Plugins > CommonUI
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UVisual
- UWidget
- UPanelWidget
- UContentWidget
- UCommonLoadGuard
References
Module | CommonUI |
Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonLoadGuard.h |
Include | #include "CommonLoadGuard.h" |
Syntax
UCLASS&40;Config&61;Game, defaultconfig&41;
class UCommonLoadGuard : public UContentWidget
Remarks
The Load Guard behaves similarly to a Border, but with the ability to hide its primary content and display a loading spinner and optional message while needed content is loaded or otherwise prepared.
Use GuardAndLoadAsset to automatically display the loading state until the asset is loaded (then the content widget will be displayed). For other applications (ex: waiting for an async backend call to complete), you can manually set the loading state of the guard.
Variables
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
bool | bShowLoading |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UCommonLoadGuard
(
const FObjectInitializer& Initializer |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | GuardAndLoadAsset
(
const TSoftObjectPtr< ObjectType >& InLazyAsset, |
Displays the loading spinner until the asset is loaded Will pass a casted pointer to the given asset in the lambda callback - could be nullptr if you provide an incompatible type or invalid asset. |
![]() |
void | GuardAndLoadAsset
(
const TSoftObjectPtr< UObject >& InLazyAsset, |
|
![]() ![]() ![]() ![]() |
bool | IsLoading () |
|
![]() |
FOnLoadGuardStateChangedEvent & | ||
![]() ![]() ![]() |
void | SetIsLoading
(
bool bInIsLoading |
|
![]() ![]() ![]() |
void | SetLoadingText
(
const FText& InLoadingText |
Overridden from UPanelWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
UClass * | GetSlotClass () |
UPanelWidget. |
![]() ![]() |
void | OnSlotAdded
(
UPanelSlot* NewSlot |
|
![]() ![]() |
void | OnSlotRemoved
(
UPanelSlot* OldSlot |
Overridden from UWidget
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
const FText | Gets the palette category of the widget | |
![]() ![]() |
void | Called after constructing a new widget from the palette. | |
![]() ![]() |
TSharedRef< SWidget > | Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. | |
![]() ![]() |
void | Applies all properties to the native widget if possible. |
Overridden from UVisual
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | ReleaseSlateResources
(
bool bReleaseChildren |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | PostLoad () |
Begin UObject. |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Classes
Type | Name | Description | |
---|---|---|---|
![]() |
FOnAssetLoaded |