/Engine/Plugins/Runtime/CommonUI/Source/CommonUI/Public/CommonLoadGuard.h
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.
template<typename ObjectType> void GuardAndLoadAsset ( const [TSoftObjectPtr](API\Runtime\CoreUObject\UObject\TSoftObjectPtr)< ObjectType > & InLazyAsset, [TFunction](API\Runtime\Core\GenericPlatform\TFunction)< void(ObjectType *)> OnAssetLoaded )