![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
Namespaces | |
| namespace | Private |
Classes | |
| struct | FObjectStatus |
| class | FPackageBackupUtility |
| struct | FPreloadDependency |
| struct | FRealmInstigator |
Typedefs | |
| using | FEDLMessageCallback = TFunction< void(ELogVerbosity::Type, FStringView)> |
| using | FEDLLogRecordCallback = TFunction< void(UE::FLogRecord &&Record)> |
Enumerations | |
| enum class | EEditorOnlyObjectFlags { None = 0 , CheckRecursive = 1 << 1 , ApplyHasNonEditorOnlyReferences = 1 << 2 } |
Variables | |
| const FName | NAME_World ("World") |
| const FName | NAME_Level ("Level") |
| const FName | NAME_PrestreamPackage ("PrestreamPackage") |
| using UE::SavePackageUtilities::FEDLLogRecordCallback = typedef TFunction<void(UE::FLogRecord&& Record)> |
| using UE::SavePackageUtilities::FEDLMessageCallback = typedef TFunction<void(ELogVerbosity::Type, FStringView)> |
|
strong |
| void UE::SavePackageUtilities::AsyncWriteFile | ( | EAsyncWriteOptions | Options, |
| FSavePackageOutputFile & | File | ||
| ) |
| void UE::SavePackageUtilities::AsyncWriteFile | ( | FLargeMemoryPtr | Data, |
| const int64 | DataSize, | ||
| const TCHAR * | Filename, | ||
| EAsyncWriteOptions | Options, | ||
| TArrayView< const FFileRegion > | InFileRegions | ||
| ) |
| COREUOBJECT_API void UE::SavePackageUtilities::CallPostSaveRoot | ( | UObject * | Object, |
| FObjectSaveContextData & | ObjectSaveContext, | ||
| bool | bCleanupRequired | ||
| ) |
Call the PostSaveRoot function on the given object.
| COREUOBJECT_API void UE::SavePackageUtilities::CallPreSave | ( | UObject * | Object, |
| FObjectSaveContextData & | ObjectSaveContext | ||
| ) |
Call the PreSave function on the given object and log a warning if there is an incorrect override.
| COREUOBJECT_API void UE::SavePackageUtilities::CallPreSaveRoot | ( | UObject * | Object, |
| FObjectSaveContextData & | ObjectSaveContext | ||
| ) |
Call the PreSaveRoot function on the given object.
|
inline |
| COREUOBJECT_API void UE::SavePackageUtilities::DecrementOutstandingAsyncWrites | ( | ) |
| UE::SavePackageUtilities::ENUM_CLASS_FLAGS | ( | EEditorOnlyObjectFlags | ) |
| ESavePackageResult UE::SavePackageUtilities::FinalizeTempOutputFiles | ( | const FPackagePath & | PackagePath, |
| const FSavePackageOutputFileArray & | OutputFiles, | ||
| const FDateTime & | FinalTimeStamp | ||
| ) |
Search 'OutputFiles' for output files that were saved to the temp directory and move those files to their final location. Output files that were not saved to the temp directory will be ignored.
If errors are encountered then the original state of the package will be restored and should continue to work.
| void UE::SavePackageUtilities::FindMostLikelyCulprit | ( | const TArray< UObject * > & | BadObjects, |
| FSaveContext & | SaveContext, | ||
| ESaveRealm | HarvestedRealm, | ||
| UObject *& | OutMostLikelyCulprit, | ||
| UObject *& | OutReferencer, | ||
| const FProperty *& | OutReferencerProperty, | ||
| bool & | OutIsCulpritArchetype, | ||
| FString & | OutDiagnosticText | ||
| ) |
Find the most likely culprit that caused the objects in the passed in array to be considered illegal for saving.
| BadObjects | Array of objects that are considered "bad" (e.g. non- RF_Public, in different map package, ...) |
| SaveContext | SaveContext for the SavePackage call. |
| HarvestedRealm | Which realm encountered the BadObjects. |
| OutMostLikelyCulprit | UObject that is considered the most likely culprit causing the "bad" objects to be referenced or NULL |
| OutReferencer | UObject referencing the most likely culprit |
| OutReferencerProperty | Property (belonging to referencer) storing the offending reference |
| OutIsCulpritArchetype | Is the most likely culprit an archetype object |
For a CDO get all of the subobjects templates nested inside it or it's class
| EObjectMark UE::SavePackageUtilities::GetExcludedObjectMarksForTargetPlatform | ( | const class ITargetPlatform * | TargetPlatform | ) |
Determines the set of object marks that should be excluded for the target platform
| TargetPlatform | The platform being saved for, or null for saving platform-agnostic version |
| EObjectMark UE::SavePackageUtilities::GetExcludedObjectMarksForTargetPlatform | ( | const ITargetPlatform * | TargetPlatform | ) |
| COREUOBJECT_API int32 UE::SavePackageUtilities::GetNumPackagesSaved | ( | ) |
| void UE::SavePackageUtilities::HarvestCookRuntimeDependencies | ( | FObjectSaveContextData & | Data, |
| UObject * | HarvestReferencesFrom | ||
| ) |
| COREUOBJECT_API void UE::SavePackageUtilities::IncrementOutstandingAsyncWrites | ( | ) |
| COREUOBJECT_API bool UE::SavePackageUtilities::IsProceduralSave | ( | bool | bIsCooking, |
| const FPackagePath & | TargetPackagePath, | ||
| uint32 | SaveFlags | ||
| ) |
Return whether the given save parameters indicate the package is a procedural save. Any save without the the possibility of user-generated edits to the package is a procedural save (Cooking, EditorDomain). This allows us to execute transforms that only need to be executed in response to new user data.
| COREUOBJECT_API bool UE::SavePackageUtilities::IsUpdatingLoadedPath | ( | bool | bIsCooking, |
| const FPackagePath & | TargetPackagePath, | ||
| uint32 | SaveFlags | ||
| ) |
Return whether the given save parameters indicate the LoadedPath of the package being saved should be updated. This allows us to update the in-memory package when it is saved in editor to match its new save file.
| COREUOBJECT_API EObjectFlags UE::SavePackageUtilities::NormalizeTopLevelFlags | ( | EObjectFlags | TopLevelFlags, |
| bool | bIsCooking | ||
| ) |
Add any required TopLevelFlags based on the save parameters.
| COREUOBJECT_API void UE::SavePackageUtilities::ResetCookStats | ( | ) |
| bool UE::SavePackageUtilities::TryHashFile | ( | FStringView | Filename, |
| HashBuilderType & | Builder, | ||
| int64 | Offset = 0, |
||
| int64 | Size = -1 |
||
| ) |
| void UE::SavePackageUtilities::WriteToFile | ( | const FString & | Filename, |
| const uint8 * | InDataPtr, | ||
| int64 | InDataSize | ||
| ) |
| const FName UE::SavePackageUtilities::NAME_Level | ( | "Level" | ) |
| const FName UE::SavePackageUtilities::NAME_PrestreamPackage | ( | "PrestreamPackage" | ) |
| const FName UE::SavePackageUtilities::NAME_World | ( | "World" | ) |