Navigation
API > API/Runtime > API/Runtime/AssetRegistry > API/Runtime/AssetRegistry/IAssetRegistry
Description
Requests that AssetDatas under MountPoints that are available for unloading via the premade AssetRegistry or in an AssetRegistry registered via an ActiveMountsRegister function be unloaded if they are not currently mounted with FPackageName. Calls OnComplete once the unload completes.
| Name | ActiveMountsUnloadAllUnmountedAsync |
| Type | function |
| Header File | /Engine/Source/Runtime/AssetRegistry/Public/AssetRegistry/IAssetRegistry.h |
| Include Path | #include "AssetRegistry/IAssetRegistry.h" |
void ActiveMountsUnloadAllUnmountedAsync
(
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 MountPoint the unload failed or was overridden by a load request. OnComplete is called from an async thread, caller should handle thread safety in their callback. |