SavePackageHelper

Helper function to save a package that may or may not be a map package

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Public/PackageHelperFunctions.h

Include

#include "PackageHelperFunctions.h"

Source

/Engine/Source/Editor/UnrealEd/Private/Commandlets/PackageUtilities.cpp

Syntax

bool SavePackageHelper
(
    UPackage * Package,
    FString Filename,
    EObjectFlags KeepObjectFlags,
    FOutputDevice * ErrorDevice,
    FLinkerNull * LinkerToConformAgainst,
    ESaveFlags SaveFlags
)

Remarks

Helper function to save a package that may or may not be a map package

Returns

true if successful

Parameters

Parameter

Description

Package

The package to save

Filename

The location to save the package to

KeepObjectFlags

Objects with any these flags will be kept when saving even if unreferenced.

ErrorDevice

the output device to use for warning and error messages

LinkerToConformAgainst

optional

linker to use as a base when saving Package; if specified, all common names, imports and exports in Package will be sorted in the same order as the corresponding entries in the LinkerToConformAgainst

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