Navigation
API > API/Runtime > API/Runtime/CoreUObject
Context structure to provide information about the cook and the event being called on an object during UObject::OnCookEvent, and to receive output from those events. The available input and output depend on the event being called,
| Name | FCookEventContext |
| Type | class |
| Header File | /Engine/Source/Runtime/CoreUObject/Public/Cooker/CookEvents.h |
| Include Path | #include "Cooker/CookEvents.h" |
Syntax
class FCookEventContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCookEventContext
(
FObjectSaveContextData& InData |
Cooker/CookEvents.h | ||
FCookEventContext
(
const UE::Cook::FCookEventContext& Other |
Cooker/CookEvents.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Data | FObjectSaveContextData & | Cooker/CookEvents.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddLoadBuildDependency
(
FCookDependency CookDependency |
Available during the event UE::Cook::PlatformCookDependencies, ignored in other events. | Cooker/CookEvents.h | |
void AddRuntimeDependency
(
FSoftObjectPath PackageName |
Available during the event UE::Cook::PlatformCookDependencies, ignored in other events. | Cooker/CookEvents.h | |
void AddSaveBuildDependency
(
FCookDependency CookDependency |
Available during the event UE::Cook::PlatformCookDependencies, ignored in other events. | Cooker/CookEvents.h | |
ICookInfo * GetCookInfo () |
Return the CookInfo that provides information about the overall cook. | Cooker/CookEvents.h | |
const ITargetPlatform * GetTargetPlatform () |
Return the TargetPlatform on behalf of which the event was called on the UObject. | Cooker/CookEvents.h | |
void HarvestCookRuntimeDependencies
(
UObject* HarvestReferencesFrom |
Available during the event UE::Cook::PlatformCookDependencies, ignored in other events. | Cooker/CookEvents.h | |
bool IsCooking () |
Report whether this OnCookEvent was called during a cook. | Cooker/CookEvents.h |
See Also
- UE::Cook::ECookEvent.