Language:
Discover
By Skill Level
By Category

IPackageAutoSaver

Choose your OS:

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

 

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

bool

 

HasPackagesToRestore()

Does we have any information about packages that can be restored

Public function

bool

 

IsAutoSaving()

If we are currently auto-saving

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

void

 

UpdateRestoreFile

(
    const bool bRestoreEnabled
)

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

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/IPackageAutoSaver.h