UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Package.h File Reference
#include "Async/Future.h"
#include "Containers/Array.h"
#include "Containers/ArrayView.h"
#include "CoreGlobals.h"
#include "CoreMinimal.h"
#include "Delegates/Delegate.h"
#include "HAL/PlatformMath.h"
#include "IO/IoHash.h"
#include "IO/PackageId.h"
#include "Misc/AssertionMacros.h"
#include "Misc/DateTime.h"
#include "Misc/Guid.h"
#include "Misc/ObjectThumbnail.h"
#include "Misc/OutputDeviceError.h"
#include "Misc/PackagePath.h"
#include "Misc/SecureHash.h"
#include "Misc/WorldCompositionUtility.h"
#include "Serialization/CustomVersion.h"
#include "Templates/PimplPtr.h"
#include "Templates/UniquePtr.h"
#include "Templates/UnrealTemplate.h"
#include "UObject/NameTypes.h"
#include "UObject/Object.h"
#include "UObject/ObjectMacros.h"
#include "UObject/ObjectVersion.h"
#include "UObject/UObjectGlobals.h"
#include "Package.generated.h"

Go to the source code of this file.

Classes

struct  UE::SavePackageUtilities::FPreloadDependency
 
struct  FSavePackageResultStruct
 
class  UPackage
 

Namespaces

namespace  UE
 
namespace  UE::SavePackageUtilities
 

Enumerations

enum class  ESavePackageResult {
  Success , Error , Canceled , ContainsEditorOnlyData ,
  UE_DEPRECATED =(5.6, "The cooker now uses SkipOnlyEditorOnly to detect ReferencedOnlyByEditorOnlyData instead of detecting it during SavePackage") , ReplaceCompletely , GenerateStub , UE_DEPRECATED =(5.0, "Diffing is now done using FDiffPackageWriter.") ,
  MissingFile , ValidatorError , ValidatorSuppress , EmptyRealm ,
  Timeout
}
 
enum class  EAssetAccessSpecifier : uint8 { Private , Public , EpicInternal }
 

Functions

bool IsSuccessful (ESavePackageResult Result)
 

Enumeration Type Documentation

◆ EAssetAccessSpecifier

Controls how package is externally referenced by other plugins and mount points

Enumerator
Private 
Public 
EpicInternal 

◆ ESavePackageResult

enum class ESavePackageResult
strong

Represents the result of saving a package

Enumerator
Success 

Package was saved successfully

Error 

Unknown error occured when saving package

Canceled 

Canceled by user

ContainsEditorOnlyData 

[When cooking] Package was not saved because it contained editor-only data

UE_DEPRECATED 
ReplaceCompletely 

[When cooking] Package was not saved because it contains assets that were converted into native code

GenerateStub 

[When cooking] Package was saved, but we should generate a stub so that other converted packages can interface with it

UE_DEPRECATED 
MissingFile 

[When cooking] The file requested (when cooking on the fly) did not exist on disk

ValidatorError 

Result from ISavePackageValidator that indicates an error.

ValidatorSuppress 

Result from ISavePackageValidator that suppresses the save but is not an error.

EmptyRealm 

Internal save result used to identify a valid empty internal save realm to skip over.

See also
ESaveRealm
Timeout 

SavePackage is blocked by an asynchronous operation, so it quickly aborted. Can only be returned if SAVE_AllowTimeout is present in SaveFlags

Function Documentation

◆ IsSuccessful()

bool IsSuccessful ( ESavePackageResult  Result)
inline