IPackageAutoSaver

An interface to handle the creation, destruction, and restoration of auto-saved packages

Windows
MacOS
Linux

References

Module

UnrealEd

Header

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

Include

#include "IPackageAutoSaver.h"

Syntax

class IPackageAutoSaver

Remarks

An interface to handle the creation, destruction, and restoration of auto-saved packages

Constructors

Name Description

Public function

IPackageAutoSaver()

Destructors

Name Description

Public function Virtual

~IPackageAutoSaver()

Functions

Name Description

Public function

void

 

AttemptAutoSave()

Attempts to auto-save the level and/or content packages, if those features are enabled.

Public function

void

 

DisableRestorePromptAndDeclinePackageRecovery()

Set a flag to bypass the recovery UI prompt and to automatically decline package recovery.

Public function

void

 

ForceAutoSaveTimer()

Forces auto-save timer to equal auto-save time limit, causing an auto-save attempt

Public function

void

 

ForceMinimumTimeTillAutoSave

(
    const float TimeTillAutoSave
)

Forces the auto-save timer to be the auto-save time limit less the passed in value

Public function Const

bool

 

HasPackagesToRestore()

Public function Const

bool

 

IsAutoSaving()

Public function

void

 

LoadRestoreFile()

Load the restore file from disk (if present)

Public function

void

 

OfferToRestorePackages()

Offer the user the chance to restore any packages that were dirty and have auto-saves

Public function

void

 

OnPackagesDeleted

(
    const TArray< UPackage* >& De...
)

Called when packages are deleted in the editor

Public function

void

 

ResetAutoSaveTimer()

Resets the auto-save timer

Public function

void

 

UpdateAutoSaveCount

(
    const float DeltaSeconds
)

Update the auto-save count based on the delta-value provided

Public function Const

void

 

UpdateRestoreFile

(
    const bool bRestoreEnabled
)

Update the file on disk that's used to restore auto-saved packages in the event of a crash

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