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 unloaded from the AssetRegistry. This is only possible for AssetDatas in the premade AssetRegistry or in an AssetRegistry file registered via an ActiveMountsRegister function. Calls OnComplete once the unload completes.
| Name | ActiveMountsUnloadAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h |
| Include Path | #include "AssetRegistry/IAssetRegistry.h" |
void ActiveMountsUnloadAsync
(
TConstArrayView< FStringView > MountPointLongPackageNames,
TFunction< void(bool bCanceled)> OnComplete
)
Parameters
| Name | Remarks |
|---|---|
| OnComplete | Optional delegate: void OnComplete(bool bCanceled). Called when the unload is complete. bCanceled is set to true iff ActiveMountsLoading is not enabled or for any requested MountPoint the unload failed or was overridden by a load 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. |