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 PopulateGeneratedPackage
(
UPackage * OwnerPackage,
UObject * OwnerObject,
const FGeneratedPackageForPopulate & GeneratedPackage,
TArray < UObject * > & OutObjectsToMove,
TArray < UPackage * > & OutKeepReferencedPackages
)
Remarks
Try to populate a generated package.
Receive an empty UPackage generated from an element in GetGenerateList and populate it. Return a list of all the objects that will be moved into the Generated package during its save, so the cooker can call BeginCacheForCookedPlatformData on them before the move After returning, the given package will be queued for saving into the TargetDomain
PopulateGeneratedPackage is guaranteed to not be called again on the same generated package 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 parent package being split |
| OwnerObject | The SplitDataClass instance that this CookPackageSplitter instance was created for |
| GeneratedPackage | Pointer and information about the package to populate |
| OutObjectsToMove | List of all the objects that will be moved into the generated package during its save |
| OutKeepReferencedPackages | Packages to keep referenced until the generated package finishes save. |