Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/ICookPackageSplitter > API/Editor/UnrealEd/ICookPackageSplitter/FPopulateContext
Description
Report a package to keep referenced until the generator/generated package finishes save. When called for a Generator, if DoesGeneratedRequireGenerator() >= Populate, these will also be kept referenced until all generated packages finish saving or the splitter is destroyed.
This is partially optional; the CookPackageSplitter can also manage the lifetime of the objects internally. But allowing objects necessary for the save to be garbage collected will cause performance problems and possibly errors, so either this method or some other internal method must be used.
This callback is only valid during Populate and PreSave functions. It is ignored during PostSave functions.
| Name | ReportKeepReferencedPackage |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/CookPackageSplitter.h |
| Include Path | #include "CookPackageSplitter.h" |
| Source | /Engine/Source/Editor/UnrealEd/Private/Cooker/CookGenerationHelper.cpp |
void ReportKeepReferencedPackage
(
UPackage * Package
)