UKismetSystemLibrary::UnloadPrimaryAssetList
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintCallable
Description
Unloads a batch of Primary Assets at once, allowing each to be garbage collected once nothing else references it.
Caveats & Gotchas
- • Equivalent to calling UnloadPrimaryAsset for every entry in the list, but avoids repeated per-asset overhead — prefer this over a loop when unloading many assets together.
- • As with UnloadPrimaryAsset, this releases the Asset Manager's hold only; objects still referenced elsewhere are not destroyed.
Signature
static void UnloadPrimaryAssetList(const TArray<FPrimaryAssetId>& PrimaryAssetIdList) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| PrimaryAssetIdList | const TArray<FPrimaryAssetId>& | The list of Primary Asset Ids to unload. | — |
Return Type
void Example
Unload a batch loaded for a level C++
UKismetSystemLibrary::UnloadPrimaryAssetList(LevelAssetIds); Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?