Navigation
API > API/Runtime > API/Runtime/CoreUObject
Data used to provide information about the save parameters during PreSave/PostSave.
| Name | FObjectSaveContextData |
| Type | struct |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/ObjectSaveContext.h |
| Include Path | #include "UObject/ObjectSaveContext.h" |
Syntax
struct FObjectSaveContextData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| UObject/ObjectSaveContext.h | |||
FObjectSaveContextData
(
const FObjectSaveContextData& Other |
UObject/ObjectSaveContext.h | ||
FObjectSaveContextData
(
FObjectSaveContextData&& Other |
UObject/ObjectSaveContext.h | ||
FObjectSaveContextData
(
UPackage* Package, |
Standard constructor; calculates derived fields from the given externally-specified fields. | UObject/ObjectSaveContext.h | |
FObjectSaveContextData
(
UPackage* Package, |
UObject/ObjectSaveContext.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FObjectSaveContextData() |
UObject/ObjectSaveContext.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bBaseClassCalled | bool | Call-site enforcement; records whether the base PreSave was called. | UObject/ObjectSaveContext.h | |
| bCleanupRequired | bool | A bool that can be set from PreSave to indicate PostSave needs to take some extra cleanup steps. | UObject/ObjectSaveContext.h | |
| bDeterminismDebug | bool | Applicable only to cook saves: True if the SavePackage call should write extra debug data for debugging cook determinism or incremental cook issues. | UObject/ObjectSaveContext.h | |
| bOuterConcurrentSave | bool | Always true normally. | UObject/ObjectSaveContext.h | |
| bProceduralSave | bool | Set to true when the package is being saved due to a procedural save. | UObject/ObjectSaveContext.h | |
| bRequestPostSaveSerialization | bool | Set to true when the current object being serialized needs to call serialize again in PostSave phase. | UObject/ObjectSaveContext.h | |
| bSaveSucceeded | bool | Set to false if the save failed, before calling any PostSaves. | UObject/ObjectSaveContext.h | |
| BuildResultDependencies | UE::Cook::FBuildResultDependenciesMap | Output variable for BuildResult names and their dependencies, reported by AddBuildDependency functions. | UObject/ObjectSaveContext.h | |
| bUpdatingLoadedPath | bool | Set to true when the LoadedPath of the package being saved is being updated. | UObject/ObjectSaveContext.h | |
| CookDependencies | TArray< UE::Cook::FCookDependency > | Collection variables that are written but not read during the PreSave/PostSave functions. | UObject/ObjectSaveContext.h | |
| CookInfo | UE::Cook::ICookInfo * | The CookInfo providing extended information about the current cook. Null if not cooking. | UObject/ObjectSaveContext.h | |
| CookingDLC | UE::Cook::ECookingDLC | UObject/ObjectSaveContext.h | ||
| CookRuntimeDependencies | TArray< FSoftObjectPath > | Output variable for runtime dependencies reported by AddRuntimeDependency functions. | UObject/ObjectSaveContext.h | |
| CookType | UE::Cook::ECookType | UObject/ObjectSaveContext.h | ||
| NumRefPasses | int32 | Variables set/read per call to PreSave/PostSave functions. | UObject/ObjectSaveContext.h | |
| Object | UObject * | The object the Save event is being called on, if known. | UObject/ObjectSaveContext.h | |
| ObjectSaveContextPhase | EObjectSaveContextPhase | Set to the appropriate phase when calling Serialize during SavePackage. | UObject/ObjectSaveContext.h | |
| OriginalPackageFlags | uint32 | Package->GetPackageFlags before the save, or 0 if no package. | UObject/ObjectSaveContext.h | |
| PackageWriter | IPackageWriter * | The PackageWriter passed to SavePackage, may be null. | UObject/ObjectSaveContext.h | |
| SaveFlags | uint32 | The save flags (ESaveFlags) of the save. | UObject/ObjectSaveContext.h | |
| SaveOverrides | TMap< UObject *, FObjectSaveOverride > | List of property overrides per object to apply to during save | UObject/ObjectSaveContext.h | |
| TargetFilename | FString | The target Filename being saved into (not the temporary file for saving). | UObject/ObjectSaveContext.h | |
| TargetPlatform | const ITargetPlatform * | The target platform of the save, if cooking. Null if not cooking. | UObject/ObjectSaveContext.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddSaveOverride
(
UObject* Target, |
Add a save override to specific object. | UObject/ObjectSaveContext.h | |
| Set the fields set by the standard constructor. | UObject/ObjectSaveContext.h | ||
void Set
(
UPackage* Package, |
UObject/ObjectSaveContext.h |