FEditorFileUtils::AutosaveContentPackagesEx

Saves all asset packages to the specified directory.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/FileHelpers.h

Include

#include "FileHelpers.h"

Source

/Engine/Source/Editor/UnrealEd/Private/FileHelpers.cpp

Syntax

static EAutosaveContentPackagesResult::Type AutosaveContentPackagesEx
(
    const FString & AbsoluteAutosaveDir,
    const int32 AutosaveIndex,
    const bool bForceIfNotInList,
    const TSet< TWeakObjectPtr< UPackage > > & DirtyPackagesForAutoSave
)

Remarks

Saves all asset packages to the specified directory.

Returns

Success if saved at least one faile. NothingToDo if there was nothing to save. Failure on at least one auto-save failure.

Parameters

Parameter

Description

AbsoluteAutosaveDir

Autosave directory.

AutosaveIndex

Integer prepended to autosave filenames.

bForceIfNotInList

Should the save be forced if the package is dirty, but not in DirtyPackagesForAutoSave?

DirtyPackagesForAutoSave

A set of packages that are considered by the auto-save system to be dirty, you should check this to see if a package needs saving

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss