Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/FAutoPackageBackup
Description
Helper function designed to determine if the provided package should be backed up or not. The function checks for many conditions, such as if the package is too large to backup, if the package has a particular attribute that should prevent it from being backed up (such as being marked for PIE-use), if cooking is in progress, etc.
| Name | ShouldBackupPackage |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/PackageBackup.h |
| Include Path | #include "PackageBackup.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/PackageBackup.cpp |
static bool ShouldBackupPackage
(
const UPackage & InPackage,
FString & OutFilename
)
true if the package is valid for backing-up; false otherwise
Parameters
| Name | Remarks |
|---|---|
| InPackage | Package which should be checked to see if its valid for backing-up |
| OutFileName | File name of the package on disk if the function determines the package already existed |