FObjectSaveContextData

Data used to provide information about the save parameters during PreSave/PostSave.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/ObjectSaveContext.h"

Syntax

struct FObjectSaveContextData

Remarks

Data used to provide information about the save parameters during PreSave/PostSave.

Variables

Name Description

Public variable

bool

 

bBaseClassCalled

Call-site enforcement; records whether the base PreSave was called.

Public variable

bool

 

bCleanupRequired

A bool that can be set from PreSave to indicate PostSave needs to take some extra cleanup steps.

Public variable

bool

 

bOuterConcurrentSave

Always true normally.

Public variable

bool

 

bProceduralSave

Set to true when the package is being saved due to a procedural save.

Public variable

bool

 

bSaveSucceeded

Set to false if the save failed, before calling any PostSaves.

Public variable

bool

 

bUpdatingLoadedPath

Set to true when the LoadedPath of the package being saved is being updated.

Public variable

int32

 

NumRefPasses

Variables set/read per call to PreSave/PostSave functions.

Public variable

uint32

 

OriginalPackageFlags

Package->GetPackageFlags before the save, or 0 if no package.

Public variable

uint32

 

SaveFlags

The save flags (ESaveFlags) of the save.

Public variable

FString

 

TargetFilename

The target Filename being saved into (not the temporary file for saving).

Public variable

const ITargetPl...

 

TargetPlatform

The target platform of the save, if cooking. Null if not cooking.

Constructors

Name Description

Public function

FObjectSaveContextData()

Public function

FObjectSaveContextData

(
    UPackage* Package,
    const ITargetPlatform* InTarge...,
    const TCHAR* InTargetFilename,
    uint32 InSaveFlags
)

Standard constructor; calculates derived fields from the given externally-specified fields.

Public function

FObjectSaveContextData

(
    UPackage* Package,
    const ITargetPlatform* InTarge...,
    const FPackagePath& TargetPath,
    uint32 InSaveFlags
)

Functions

Name Description

Public function

void

 

Set

(
    UPackage* Package,
    const ITargetPlatform* InTarge...,
    const TCHAR* InTargetFilename,
    uint32 InSaveFlags
)

Set the fields set by the standard constructor.

Public function

void

 

Set

(
    UPackage* Package,
    const ITargetPlatform* InTarge...,
    const FPackagePath& TargetPath,
    uint32 InSaveFlags
)

Set the fields set by the standard constructor.