Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UPackageTools > API/Editor/UnrealEd/UPackageTools/UnloadPackages
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/PackageTools.h |
| Include | #include "PackageTools.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/PackageTools.cpp |
static bool UnloadPackages
&40;
const TArray< UPackage &42; > & PackagesToUnload,
FText & OutErrorMessage,
bool bUnloadDirtyPackages
&41;
Remarks
Helper function that attempts to unload the specified top-level packages. true if the set of loaded packages was changed
Parameters
| Name | Description |
|---|---|
| PackagesToUnload | the list of packages that should be unloaded |
| OutErrorMessage | An error message specifying any problems with unloading packages |
| bUnloadDirtyPackages | Whether to unload packages that are dirty (that need to be saved) |