Navigation
API > API/Plugins > API/Plugins/CommonUI > API/Plugins/CommonUI/SLoadGuard > API/Plugins/CommonUI/SLoadGuard/GuardAndLoadAsset
References
| Module | CommonUI |
| Header | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonLoadGuard.h |
| Include | #include "CommonLoadGuard.h" |
| Source | /Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Private/CommonLoadGuard.cpp |
void GuardAndLoadAsset
&40;
const TSoftObjectPtr< UObject > & InLazyAsset,
FOnLoadGuardAssetLoaded OnAssetLoaded
&41;
Remarks
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.