Navigation
API > API/Plugins > API/Plugins/CommonUI > API/Plugins/CommonUI/SLoadGuard
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void GuardAndLoadAsset
(
const TSoftObjectPtr< UObject >& 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. | CommonLoadGuard.h | |
void GuardAndLoadAsset
(
const TSoftObjectPtr< UObject >& InLazyAsset, |
CommonLoadGuard.h |
GuardAndLoadAsset(const TSoftObjectPtr< UObject > &, FOnLoadGuardAssetLoaded)
Description
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.
| Name | GuardAndLoadAsset |
| Type | function |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonLoadGuard.h |
| Include Path | #include "CommonLoadGuard.h" |
| Source | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Private/CommonLoadGuard.cpp |
void GuardAndLoadAsset
(
const TSoftObjectPtr < UObject > & InLazyAsset,
FOnLoadGuardAssetLoaded OnAssetLoaded
)
GuardAndLoadAsset(const TSoftObjectPtr< UObject > &, TFunction< void(ObjectType *)>)
| Name | GuardAndLoadAsset |
| Type | function |
| Header File | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonLoadGuard.h |
| Include Path | #include "CommonLoadGuard.h" |
template<typename ObjectType>
void GuardAndLoadAsset
(
const TSoftObjectPtr < UObject > & InLazyAsset,
TFunction < void> OnAssetLoaded
)