Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UEditorEngine
Description
Checks if a provided package is valid to be saved. For startup packages, it asks user for confirmation.
| Name | IsPackageOKToSave |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h |
| Include Path | #include "Editor/EditorEngine.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/EditorEngine.cpp |
virtual bool IsPackageOKToSave
(
UPackage * InPackage,
const FString & InFilename,
FOutputDevice * Error
)
true if the provided package is valid to be saved
Parameters
| Name | Remarks |
|---|---|
| InPackage | Package to consider the validity of auto-adding to a default source control changelist |
| InFilename | Filename of the package after it will be saved (not necessarily the same as the filename of the first param in the event of a rename) |
| Error | Error output |