Choose your operating system:
Windows
macOS
Linux
| UObjectBase
|
Module |
|
Header |
/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Public/CommonLoadGuard.h |
Include |
#include "CommonLoadGuard.h" |
UCLASS(Config=Game, defaultconfig)
class UCommonLoadGuard : public UContentWidget
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.
Name | Description | ||
---|---|---|---|
|
bShowLoading |
Name | Description | |
---|---|---|
|
UCommonLoadGuard ( |
Name | Description | ||
---|---|---|---|
|
GuardAndLoadAsset ( |
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. |
|
|
GuardAndLoadAsset ( |
||
|
IsLoading() |
||
|
FOnLoadGuard... |
OnLoadingStateChanged() |
|
|
SetIsLoading ( |
||
|
SetLoadingText ( |
Name | Description | ||
---|---|---|---|
|
UClass * |
GetSlotClass() |
|
|
OnSlotAdded ( |
||
|
OnSlotRemoved ( |
Name | Description | ||
---|---|---|---|
|
const FText |
GetPaletteCategory() |
Gets the palette category of the widget |
|
OnCreationFromPalette() |
Called by the palette after constructing a new widget, allows the widget to perform interesting default setup that we don't want to be UObject Defaults. |
|
|
TSharedRef< ... |
RebuildWidget() |
Function implemented by all subclasses of UWidget is called when the underlying SWidget needs to be constructed. |
|
SynchronizeProperties() |
Applies all properties to the native widget if possible. |
Name | Description | ||
---|---|---|---|
|
ReleaseSlateResources ( |
Name |
Description |
|
---|---|---|
|
FOnAssetLoaded |