Navigation
API > API/Runtime > API/Runtime/CoreUObject
Flags for saving objects/packages, passed into UPackage::SavePackage() as a uint32
| Name | ESaveFlags |
| Type | enum |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h |
| Include Path | #include "UObject/ObjectMacros.h" |
Syntax
enum ESaveFlags
{
SAVE_None = 0x00000000,
SAVE_NoError = 0x00000001,
SAVE_FromAutosave = 0x00000002,
SAVE_KeepDirty = 0x00000004,
SAVE_Async = 0x00000010,
SAVE_Unversioned_Native = 0x00000020,
SAVE_CutdownPackage = 0x00000040,
SAVE_KeepEditorOnlyCookedPackages = 0x00000080,
SAVE_Concurrent = 0x00000100,
SAVE_BulkDataByReference = 0x00002000,
SAVE_Unversioned_Properties = 0x00004000,
SAVE_Optional = 0x00008000,
SAVE_AllowTimeout = 0x00010000,
SAVE_RehydratePayloads = 0x00020000,
SAVE_CookSoftPackageReferences = 0x00040000,
SAVE_Unversioned = SAVE_Unversioned_Native | SAVE_Unversioned_Properties,
}
Values
| Name | Remarks |
|---|---|
| SAVE_None | No flags. |
| SAVE_NoError | Don't generate errors on save. |
| SAVE_FromAutosave | Used to indicate this save was initiated automatically. |
| SAVE_KeepDirty | Do not clear the dirty flag when saving |
| SAVE_Async | Save to a memory writer, then actually write to disk async. |
| SAVE_Unversioned_Native | Save all versions as zero. Upon load this is changed to the current version. This is only reasonable to use with full cooked builds for distribution. |
| SAVE_CutdownPackage | Saving cutdown packages in a temp location WITHOUT renaming the package. |
| SAVE_KeepEditorOnlyCookedPackages | Keep packages which are marked as editor only even though we are cooking. |
| SAVE_Concurrent | We are save packages in multiple threads at once and should not call non-threadsafe functions or rely on globals. |
| SAVE_BulkDataByReference | When saving to a different file than the package's LoadedPath, point bulkdata in the new file to be loaded from the original file. |
| SAVE_Unversioned_Properties | Properties are saved without property name information, and are saved/loaded in the order of the current binary. |
| SAVE_Optional | Indicate that we to save optional exports. This flag is only valid while cooking. Optional exports are filtered if not specified during cooking. |
| SAVE_AllowTimeout | If present, if SavePackage is blocked by an asynchronous operation, it will quickly fail with ESavePackageResult::Timeout, otherwise it will wait for a while and then fail with ESavePackageResult::Error. |
| SAVE_RehydratePayloads | Any virtualized payloads in the package should be pulled and stored locally in the package file during the save. |
| SAVE_CookSoftPackageReferences | Indicate that we want to save soft package references for cooked packages. |
| SAVE_Unversioned |