Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/UCookOnTheFlyServer
Description
Prepares save by calling BeginCacheForCookedPlatformData on all UObjects in the package. Also splits the package if an object of this package has its class registered to a corresponding FRegisteredCookPackageSplitter and an instance of this splitter class returns true ShouldSplitPackage for this UObject.
| Name | PrepareSave |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Classes/CookOnTheSide/CookOnTheFlyServer.h |
| Include Path | #include "CookOnTheSide/CookOnTheFlyServer.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/CookOnTheFlyServer.cpp |
UE::Cook::EPollStatus PrepareSave
(
UE::Cook::FPackageData & PackageData,
UE::Cook::FCookerTimer & Timer,
bool bPrecaching,
UE::Cook::ESuppressCookReason & OutDemotionRequestedReason
)
false if time slice was reached, true if all objects have had BeginCacheForCookedPlatformData called
Parameters
| Name | Remarks |
|---|---|
| PackageData | the PackageData used to gather all uobjects from |
| bIsPrecaching | true if called for precaching |
| OutDemotionRequestedReason | Value is ESuppressCookReason::NotSuppressed if no suppression is requested, or if returned PollStatus is not InComplete. It can be set to a different value, requesting suppression, and returned PollStatus will be InComplete. If caller handles demotion, the caller should demote the package with the given reason. It is valid to call PrepareSave again later if caller does not handle demotion. |