SLoadGuard::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.

Windows
MacOS
Linux

References

Module

CommonUI

Header

/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Public/CommonLoadGuard.h

Include

#include "CommonLoadGuard.h"

Source

/Engine/Plugins/Experimental/CommonUI/Source/CommonUI/Private/CommonLoadGuard.cpp

Syntax

void GuardAndLoadAsset
(
    const TSoftObjectPtr< UObject > & InLazyAsset,
    FOnLoadGuardAssetLoaded OnAssetLoaded
)

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss