UPackage::Save

Save one specific object (along with any objects it references contained within the same Outer) into an Unreal package.

Choose your operating system:

Windows

macOS

Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/Package.h

Include

#include "UObject/Package.h"

Syntax

static FSavePackageResultStruct Save
(
    UPackage * InOuter,
    UObject * InAsset,
    const TCHAR * Filename,
    const FSavePackageArgs & SaveArgs
)

Remarks

Save one specific object (along with any objects it references contained within the same Outer) into an Unreal package.

Returns

FSavePackageResultStruct enum value with the result of saving a package as well as extra data

Parameters

Parameter

Description

InOuter

the outer to use for the new package

InAsset

the object that should be saved into the package

Filename

the name to use for the new package file

SaveArgs

Extended arguments to control the save

See Also