Navigation
API > API/Editor > API/Editor/UnrealEd
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/CookPackageSplitter.h |
| Include | #include "CookPackageSplitter.h" |
Syntax
class ICookPackageSplitter
Remarks
This class is used for packages that need to be split into multiple runtime packages. It provides the instructions to the cooker for how to split the package.
Destructors
| Type | Name | Description | |
|---|---|---|---|
| Virtual API functions - functions called from the cooker after creating the splitter. |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FString | ConstructGeneratedPackageName
(
FName OwnerPackageName, |
Return the full packagename that will be used for a GeneratedPackage, based on the GeneratorPackage's name and on the RelPath and optional GeneratedRootPath that the splitter provides in the FGeneratedPackage it returns from GetGenerateList. | |
| EGeneratedRequiresGenerator | Return capability setting which indicates which splitter functions acting on the parent generator package must be called on the splitter before splitter functions acting on the generated packages can be called. | ||
| const TCHAR * | The name of the Generated subdirectory that is the parent directory of a splitter's generated packages. | ||
| TArray< FGeneratedPackage > | GetGenerateList
(
const UPackage* OwnerPackage, |
Return the list of packages to generate. | |
| FString | Return DebugName for this SplitterClass in cook log messages. | ||
| bool | IsUnderGeneratedPackageSubPath
(
FStringView FileOrLongPackagePath |
Return true if the given path is a Generated directory, or a subpath under it. | |
| void | OnOwnerReloaded
(
UPackage* OwnerPackage, |
Called when the Owner package needs to be reloaded after a garbage collect in order to populate a generated package. | |
| bool | PopulateGeneratedPackage
(
UPackage* OwnerPackage, |
Try to populate a generated package. | |
| bool | PopulateGeneratorPackage
(
UPackage* OwnerPackage, |
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. | |
| void | PostSaveGeneratedPackage
(
UPackage* OwnerPackage, |
Called after saving a generated package. | |
| void | PostSaveGeneratorPackage
(
UPackage* OwnerPackage, |
Called after saving the parent generator package. | |
| bool | PreSaveGeneratedPackage
(
UPackage* OwnerPackage, |
Called before saving a generated package, after PopulateGeneratedPackage. | |
| bool | PreSaveGeneratorPackage
(
UPackage* OwnerPackage, |
Called before saving the parent generator package, after PopulateGeneratorPackage but before PopulateGeneratedPackage for any generated packages. | |
| bool | Static API functions - these static functions are referenced by REGISTER_COOKPACKAGE_SPLITTER before creating an instance of the class. | ||
| bool | An ICookPackageSplitter for a single generator package normally is constructed only once and handles all generated packages for that generator, but during MPCook in cases of load balancing between CookWorkers, it is possible that the original splitter is destructed but then recreated later. | ||
| bool | ShouldSplit
(
UObject* SplitData |
Return whether the CookPackageSplitter subclass should handle the given SplitDataClass instance. | |
| void | Do teardown actions after all packages have saved, or when the cook is cancelled. | ||
| bool | If true, this splitter forces the Generator package objects it needs to remain referenced, and the cooker should expect them to still be in memory after a garbage collect so long as the splitter is alive. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FGeneratedPackage | Data sent to the cooker to describe each desired generated package | ||
| FGeneratedPackageForPopulate | Representation of a generated package when it itself is being populated. | ||
| FGeneratedPackageForPreSave | Representation of a generated package that is provided when populating the generator package. |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EGeneratedRequiresGenerator | Return value for the DoesGeneratedRequireGenerator function. | ||
| ETeardown |