Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorLoadingAndSavingUtils
Description
Save all packages. Assume all dirty packages should be saved and check out from source control (if enabled).
| Name | SavePackages |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/FileHelpers.h |
| Include Path | #include "FileHelpers.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/FileHelpers.cpp |
UFUNCTION (BlueprintCallable, Category="Editor Scripting | Editor Loading and Saving")
static bool SavePackages
(
const TArray < UPackage * > & PackagesToSave,
bool bOnlyDirty
)
true on success, false on fail.
Parameters
| Name | Remarks |
|---|---|
| PackagesToSave | The list of packages to save. Both map and content packages are supported |
| bCheckDirty | If true, only packages that are dirty in PackagesToSave will be saved |