Navigation
API > API/Editor > API/Editor/UnrealEd > API/Editor/UnrealEd/ICookPackageSplitter
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/CookPackageSplitter.h |
| Include | #include "CookPackageSplitter.h" |
virtual bool PopulateGeneratorPackage
(
UPackage * OwnerPackage,
UObject * OwnerObject,
const TArray < ICookPackageSplitter::FGeneratedPackageForPreSave > & GeneratedPackages,
TArray < UObject * > & OutObjectsToMove,
TArray < UPackage * > & OutKeepReferencedPackages
)
Remarks
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.
PopulateGeneratorPackage is guaranteed to not be called again until the splitter has been destroyed and the generator package has been garbage collected. True if successfully populated, false on error (this will cause a cook error).
Parameters
| Name | Description |
|---|---|
| OwnerPackage | The generator package being split |
| OwnerObject | The SplitDataClass instance that this CookPackageSplitter instance was created for |
| GeneratedPackages | Placeholder UPackage and relative path information for all packages that will be generated |
| OutObjectsToMove | List of all the objects that will be moved into the Generator package during its save |
| OutKeepReferencedPackages | Packages to keep referenced until the generator package finishes save. If DoesGeneratedRequireGenerator() >= Populate, these will also be kept referenced until all generated packages finish saving or the splitter is destroyed. |