UCookOnTheFlyServer::SaveCookedPackage

Cook (save) the given package

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/CookOnTheSide/CookOnTheFlyServer.h

Include

#include "CookOnTheSide/CookOnTheFlyServer.h"

Source

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

Syntax

void SaveCookedPackage
(
    UE::Cook::FPackageData & PackageData,
    uint32 SaveFlags,
    const TArrayView< const ITargetPlatform *const > & TargetPlatforms,
    TArray< FSavePackageResultStruct > & SavePackageResults
)

Remarks

Cook (save) the given package

Returns

ESavePackageResult::Success if packages was cooked

Parameters

Parameter

Description

PackageData

The PackageData to cook/save

SaveFlags

The flags to pass to the SavePackage function

bOutWasUpToDate

Upon return, if true then the cooked package was cached (up to date)

TargetPlatforms

Only cook for target platforms which are included in this array

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