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,
    FLinkerLoad * 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

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback