Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/ICookPackageSplitter
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool PopulateGeneratorPackage
(
FPopulateContext& PopulateContext |
Called before presaving the parent generator package, to give the generator a chance to inform the cooker which objects will be moved into the generator package that are not already present in it. | CookPackageSplitter.h | |
virtual bool PopulateGeneratorPackage
(
UPackage* OwnerPackage, |
CookPackageSplitter.h |
PopulateGeneratorPackage(FPopulateContext &)
Description
Called before presaving the parent generator package, to give the generator a chance to inform the cooker which objects will be moved into the generator package that are not already present in it. This function will also be called before calling Populate and PreSave on generated packages, if that behavior is requested via DoesGeneratedRequireGenerator.
After being called once, PopulateGeneratorPackage is guaranteed to not be called again until the splitter has been destroyed and the generator package has been garbage collected.
This function will not be called if bCookSaveGeneratorPackage is false in the GenerationManifest, unless it is needed for generated packages as well via DoesGeneratedRequireGenerator.
If this splitter returns false for virtual RequiresEmptyPackageBeforePopulate(GeneratedPackage), it can add or move objects into that generated package during PopulateGeneratorPackage. Doing so will prevent the targeted generated package from being garbage collected until the generator package can be destroyed. This is worse performance, but can be useful to reduce Splitter complexity.
If the splitter returns true for virtual RequiresEmptyPackageBeforePopulate(GeneratedPackage), adding or moving objects into that generated package during PopulateGeneratorPackage is an error, and those objects will be missing from the generated package when it is saved.
| Name | PopulateGeneratorPackage |
| Type | function |
| Header File | /Engine/Source/Editor/UnrealEd/Public/CookPackageSplitter.h |
| Include Path | #include "CookPackageSplitter.h" |
virtual bool PopulateGeneratorPackage
(
FPopulateContext & PopulateContext
)
True if successfully populated, false on error (this will cause a cook error).
PopulateGeneratorPackage(UPackage , UObject , const TArray< ICookPackageSplitter::FGeneratedPackageForPopulate > &, TArray< UObject > &, TArray< UPackage > &)
| Name | PopulateGeneratorPackage |
| 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 |
virtual bool PopulateGeneratorPackage
(
UPackage * OwnerPackage,
UObject * OwnerObject,
const TArray < ICookPackageSplitter::FGeneratedPackageForPopulate > & GeneratedPackages,
TArray < UObject * > & OutObjectsToMove,
TArray < UPackage * > & OutKeepReferencedPackages
)