Language:
Discover
By Skill Level
By Category

SavePackageHelper

Choose your OS:

Syntax

bool [UNREALED_API](API\Editor\UnrealEd\Commandlets\UNREALED_API_2) SavePackageHelper
(
    UPackage * Package,
    FString Filename,
    EObjectFlags KeepObjectFlags,
    FOutputDevice * ErrorDevice,
    FLinkerLoad * LinkerToConformAgainst,
    ESaveFlags SaveFlags
)

Remarks

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

true if successful

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

References

Module

UnrealEd

Header

Editor/UnrealEd/Public/PackageHelperFunctions.h

Source

Editor/UnrealEd/Private/Commandlets/PackageUtilities.cpp