UEditorEngine::IsPackageOKToSave

Checks if a provided package is valid to be saved.

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Source

/Engine/Source/Editor/UnrealEd/Private/EditorEngine.cpp

Syntax

virtual bool IsPackageOKToSave
(
    UPackage * InPackage,
    const FString & InFilename,
    FOutputDevice * Error
)

Remarks

Checks if a provided package is valid to be saved. For startup packages, it asks user for confirmation.

Returns

true if the provided package is valid to be saved

Parameters

Parameter

Description

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

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