Navigation
API > API/Runtime > API/Runtime/CoreUObject > API/Runtime/CoreUObject/ICookInfo
Description
MPCook: register in the current process a collector that replicates system-specific and package-specific information between CookWorkers and the CookDirector. Registration will be skipped if the current cook is singleprocess, or if the provided ProcessType does not match the current processtype. If registration is skipped, the Collector will be referenced but then immediately released, which will delete the Collector if the caller does not have their own TRefCountPtr to it.
| Name | RegisterCollector |
| Type | function |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/UObject/ICookInfo.h |
| Include Path | #include "UObject/ICookInfo.h" |
void RegisterCollector
(
IMPCollector * Collector,
UE::Cook::EProcessType ProcessType
)
Parameters
| Name | Remarks |
|---|---|
| ProcessType | The given collector will only be registered on the given process types, allowing you to register a different class on Workers than on the Director if desired. |