Navigation
API > API/Developer > API/Developer/UnsavedAssetsTracker
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.
| Name | FUnsavedAssetsTrackerModule |
| Type | class |
| Header File | /Engine/Source/Developer/UnsavedAssetsTracker/Source/Public/UnsavedAssetsTrackerModule.h |
| Include Path | #include "UnsavedAssetsTrackerModule.h" |
Syntax
class FUnsavedAssetsTrackerModule : public IModuleInterface
Implements Interfaces
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| OnUnsavedAssetAdded | FOnUnsavedAssetAdded | Invoked when a file is added to the unsaved list. | UnsavedAssetsTrackerModule.h | |
| OnUnsavedAssetRemoved | FOnUnsavedAssetRemoved | Invoked when a file is removed from the unsaved list. | UnsavedAssetsTrackerModule.h | |
| PostUnsavedAssetAutoCheckout | FPostUnsavedAssetAutoCheckout | Invoked after an asset has been checked out of source control | UnsavedAssetsTrackerModule.h | |
| PostUnsavedAssetAutoCheckoutCancel | FPostUnsavedAssetAutoCheckout | Invoked after an asset has been cancelled for automatic check out | UnsavedAssetsTrackerModule.h | |
| PostUnsavedAssetAutoCheckoutFailure | FPostUnsavedAssetAutoCheckout | Invoked after an asset failed to be checked out of source control | UnsavedAssetsTrackerModule.h | |
| PreUnsavedAssetAutoCheckout | FPreUnsavedAssetAutoCheckout | 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 | UnsavedAssetsTrackerModule.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| UnsavedAssetAutoCheckout | TSharedPtr< FUnsavedAssetsAutoCheckout > | UnsavedAssetsTrackerModule.h | ||
| UnsavedAssetTracker | TSharedPtr< FUnsavedAssetsTracker > | UnsavedAssetsTrackerModule.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetUnsavedAssetNum() |
Returns the number of unsaved assets currently tracked. | UnsavedAssetsTrackerModule.h | |
| Returns the list of unsaved assets. | UnsavedAssetsTrackerModule.h | ||
bool IsAssetUnsaved
(
const FString& FileAbsPathname |
Check if the input asset is unsaved. | UnsavedAssetsTrackerModule.h | |
TSharedRef< SWidget > MakeUnsavedAssetsStatusBarWidget() |
Construct the widget for the Editor status bar. | UnsavedAssetsTrackerModule.h | |
bool PromptToSavePackages() |
Displays a dialog prompting the user to save unsaved packages. | UnsavedAssetsTrackerModule.h |
Overridden from IModuleInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void ShutdownModule() |
UnsavedAssetsTrackerModule.h | ||
virtual void StartupModule() |
IModuleInterface implementation | UnsavedAssetsTrackerModule.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FUnsavedAssetsTrackerModule & Get() |
Retrieve the module instance. | UnsavedAssetsTrackerModule.h |