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
&40;
UPackage &42; OwnerPackage,
UObject &42; OwnerObject,
const FGeneratedPackageForPopulate & GeneratedPackage,
TArray< UObject &42; > & OutObjectsToMove,
TArray< UPackage &42; > & OutKeepReferencedPackages
&41;
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 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 | A list of packages which should be kept referenced until all generated packages for for the generator have finished saving. |