FUnsavedAssetsTrackerModule

Tracks assets that has in-memory modification not saved to disk yet and checks the source control states of those assets when a source control provider is available.

Unreal Engine C++ API Reference > Developer > UnsavedAssetsTracker

Inheritance Hierarchy

References

   
Module UnsavedAssetsTracker
Header /Engine/Source/Developer/UnsavedAssetsTracker/Source/Public/UnsavedAssetsTrackerModule.h
Include #include "UnsavedAssetsTrackerModule.h"

Syntax

class FUnsavedAssetsTrackerModule : public [IModuleInterface](API\Runtime\Core\Modules\IModuleInterface)  

Remarks

Tracks assets that has in-memory modification not saved to disk yet and checks the source control states of those assets when a source control provider is available.

Variables

Type Name Description
FOnUnsavedAsset... OnUnsavedAssetAdded Invoked when a file is added to the unsaved list.
FOnUnsavedAsset... OnUnsavedAssetRemoved Invoked when a file is removed from the unsaved list.
FPostUnsavedAss... PostUnsavedAssetAutoCheckout Invoked after an asset has been checked out of source control
FPostUnsavedAss... PostUnsavedAssetAutoCheckoutCancel Invoked after an asset has been cancelled for automatic check out
FPostUnsavedAss... PostUnsavedAssetAutoCheckoutFailure Invoked after an asset failed to be checked out of source control
FPreUnsavedAsse... PreUnsavedAssetAutoCheckout Invoked before an asset is potentially automatically checked out of source control Every notified File/Operation combination is followed by one of the Cancel/Success/Failure notifications below

Functions

Type Name Description
FUnsavedAsse... Get () Retrieve the module instance.
int32 GetUnsavedAssetNum () Returns the number of unsaved assets currently tracked.
TArray< FStr... GetUnsavedAssets () Returns the list of unsaved assets.
bool IsAssetUnsaved ( const FString& FileAbsPathname ) Check if the input asset is unsaved.
TSharedRef< ... MakeUnsavedAssetsStatusBarWidget () Construct the widget for the Editor status bar.
bool PromptToSavePackages () Displays a dialog prompting the user to save unsaved packages.

Overridden from IModuleInterface

Type Name Description
void ShutdownModule () Called before the module is unloaded, right before the module object is destroyed.
void StartupModule () IModuleInterface implementation

Ask questions and help your peers Developer Forums

Write your own tutorials or read those from others Learning Library