ESaveFlags

Flags for saving objects/packages, passed into [UPackage::SavePackage()](API\Runtime\CoreUObject\UObject\UPackage\SavePackage\1) as a uint32

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectMacros.h

Include

#include "UObject/ObjectMacros.h"

Syntax

enum ESaveFlags
{
    SAVE_None                            = 0x00000000,
    SAVE_NoError                         = 0x00000001,
    SAVE_FromAutosave                    = 0x00000002,
    SAVE_KeepDirty                       = 0x00000004,
    SAVE_KeepGUID                        = 0x00000008,
    SAVE_Async                           = 0x00000010,
    SAVE_Unversioned_Native              = 0x00000020,
    SAVE_CutdownPackage                  = 0x00000040,
    SAVE_KeepEditorOnlyCookedPackages    = 0x00000080,
    SAVE_Concurrent                      = 0x00000100,
    SAVE_ComputeHash                     = 0x00000800,
    SAVE_CompareLinker                   = 0x00001000,
    SAVE_BulkDataByReference             = 0x00002000,
    SAVE_Unversioned_Properties          = 0x00004000,
    SAVE_Optional                        = 0x00008000,
    SAVE_Unversioned                     = SAVE_Unversioned_Native | SAVE_Unversioned_Properties,
}

Values

Name

Description

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_KeepGUID

Keep the same guid, used to save cooked packages.

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_ComputeHash

Compute the MD5 hash of the cooked data.

SAVE_CompareLinker

Return the linker save to compare against another.

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_Unversioned

Remarks

Flags for saving objects/packages, passed into UPackage::SavePackage() as a uint32