Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/IAssetRegistry
Description
Requests that AssetDatas under the given MountPoints (looked up via FPackageName::FindOrAddMountPoint) be reloaded into the AssetRegistry. This only affects MountPoints previously unloaded via auto unload or ActiveMountsUnloadAsync, and is only possible for AssetDatas in the premade AssetRegistry or in an AssetRegistry file registered via an ActiveMountsRegister function. Calls OnComplete once the load completes.
| Name | ActiveMountsLoadAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h |
| Include Path | #include "AssetRegistry/IAssetRegistry.h" |
void ActiveMountsLoadAsync
(
TConstArrayView< FStringView > MountPointLongPackageNames,
TFunction< void(bool bCanceled)> OnComplete
)
Parameters
| Name | Remarks |
|---|---|
| OnComplete | Optional delegate: void OnComplete(bool bCanceled). Called when the load is complete. bCanceled is set to true iff ActiveMountsLoading is not enabled or for any requested MountPoint the load failed or was overridden by an unload request. If true, test ActiveMountsIsEnabled and call ActiveMountsIsLoaded to test state of each mountpoint. OnComplete is called from an async thread, caller should handle thread safety in their callback. |