Module |
|
Header |
/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Public/CommonLoadGuard.h |
Include |
#include "CommonLoadGuard.h" |
template<typename ObjectType>
void GuardAndLoadAsset
(
const TSoftObjectPtr< ObjectType > & InLazyAsset,
TFunction< void> OnAssetLoaded
)
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.